Skip to content

Commit

Permalink
Merge pull request #377 from jesseduffield/upping-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseduffield committed Oct 11, 2022
2 parents 26b40a9 + 15990ef commit f948334
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkg/gui/services_panel.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,13 @@ func (gui *Gui) handleServiceUp(g *gocui.Gui, v *gocui.View) error {
return nil
}

if err := service.Up(); err != nil {
return gui.createErrorPanel(err.Error())
}
return gui.WithWaitingStatus(gui.Tr.UppingStatus, func() error {
if err := service.Up(); err != nil {
return gui.createErrorPanel(err.Error())
}

return nil
return nil
})
}

func (gui *Gui) handleServiceRestart(g *gocui.Gui, v *gocui.View) error {
Expand Down
2 changes: 2 additions & 0 deletions pkg/i18n/english.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ type TranslationSet struct {
RestartingStatus string
StartingStatus string
StoppingStatus string
UppingStatus string
PausingStatus string
RemovingStatus string
RunningCustomCommandStatus string
Expand Down Expand Up @@ -117,6 +118,7 @@ func englishSet() TranslationSet {
RestartingStatus: "restarting",
StartingStatus: "starting",
StoppingStatus: "stopping",
UppingStatus: "upping",
PausingStatus: "pausing",
RunningCustomCommandStatus: "running custom command",
RunningBulkCommandStatus: "running bulk command",
Expand Down

0 comments on commit f948334

Please sign in to comment.