summaryrefslogtreecommitdiffstats
path: root/pkg/gui/workspace_reset_options_panel.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/workspace_reset_options_panel.go')
-rw-r--r--pkg/gui/workspace_reset_options_panel.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkg/gui/workspace_reset_options_panel.go b/pkg/gui/workspace_reset_options_panel.go
index 701aecf08..872cc4508 100644
--- a/pkg/gui/workspace_reset_options_panel.go
+++ b/pkg/gui/workspace_reset_options_panel.go
@@ -21,7 +21,7 @@ func (gui *Gui) handleCreateResetMenu() error {
red.Sprint(nukeStr),
},
onPress: func() error {
- if err := gui.GitCommand.WithSpan("Nuke working tree").ResetAndClean(); err != nil {
+ if err := gui.GitCommand.WithSpan(gui.Tr.Spans.NukeWorkingTree).ResetAndClean(); err != nil {
return gui.surfaceError(err)
}
@@ -34,7 +34,7 @@ func (gui *Gui) handleCreateResetMenu() error {
red.Sprint("git checkout -- ."),
},
onPress: func() error {
- if err := gui.GitCommand.WithSpan("Discard unstaged file changes").DiscardAnyUnstagedFileChanges(); err != nil {
+ if err := gui.GitCommand.WithSpan(gui.Tr.Spans.DiscardUnstagedFileChanges).DiscardAnyUnstagedFileChanges(); err != nil {
return gui.surfaceError(err)
}
@@ -47,7 +47,7 @@ func (gui *Gui) handleCreateResetMenu() error {
red.Sprint("git clean -fd"),
},
onPress: func() error {
- if err := gui.GitCommand.WithSpan("Remove untracked files").RemoveUntrackedFiles(); err != nil {
+ if err := gui.GitCommand.WithSpan(gui.Tr.Spans.RemoveUntrackedFiles).RemoveUntrackedFiles(); err != nil {
return gui.surfaceError(err)
}
@@ -60,7 +60,7 @@ func (gui *Gui) handleCreateResetMenu() error {
red.Sprint("git reset --soft HEAD"),
},
onPress: func() error {
- if err := gui.GitCommand.WithSpan("Soft reset").ResetSoft("HEAD"); err != nil {
+ if err := gui.GitCommand.WithSpan(gui.Tr.Spans.SoftReset).ResetSoft("HEAD"); err != nil {
return gui.surfaceError(err)
}
@@ -73,7 +73,7 @@ func (gui *Gui) handleCreateResetMenu() error {
red.Sprint("git reset --mixed HEAD"),
},
onPress: func() error {
- if err := gui.GitCommand.WithSpan("Mixed reset").ResetMixed("HEAD"); err != nil {
+ if err := gui.GitCommand.WithSpan(gui.Tr.Spans.MixedReset).ResetMixed("HEAD"); err != nil {
return gui.surfaceError(err)
}
@@ -86,7 +86,7 @@ func (gui *Gui) handleCreateResetMenu() error {
red.Sprint("git reset --hard HEAD"),
},
onPress: func() error {
- if err := gui.GitCommand.WithSpan("Hard reset").ResetHard("HEAD"); err != nil {
+ if err := gui.GitCommand.WithSpan(gui.Tr.Spans.HardReset).ResetHard("HEAD"); err != nil {
return gui.surfaceError(err)
}