mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-22 15:11:02 +00:00
wait when upping
This commit is contained in:
parent
26b40a9d94
commit
15990effff
2 changed files with 8 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ type TranslationSet struct {
|
|||
RestartingStatus string
|
||||
StartingStatus string
|
||||
StoppingStatus string
|
||||
UppingStatus string
|
||||
PausingStatus string
|
||||
RemovingStatus string
|
||||
RunningCustomCommandStatus string
|
||||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue