diff options
author | Michael Muré <batolettre@gmail.com> | 2022-08-20 10:52:11 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2022-08-20 10:52:11 +0200 |
commit | 8818d091e85087766d7f493b7dfaf1aedc3a4ab0 (patch) | |
tree | a3bd60a9f533fc6fc11a094038d095510210cd23 /termui/show_bug.go | |
parent | 58df94d38d754bff4dcca11e2ae4b99326a9a87e (diff) | |
download | git-bug-8818d091e85087766d7f493b7dfaf1aedc3a4ab0.tar.gz |
move bug.Status in entities/common for reuse
Diffstat (limited to 'termui/show_bug.go')
-rw-r--r-- | termui/show_bug.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/termui/show_bug.go b/termui/show_bug.go index c77000f5..6cace04a 100644 --- a/termui/show_bug.go +++ b/termui/show_bug.go @@ -11,6 +11,7 @@ import ( "github.com/MichaelMure/git-bug/cache" "github.com/MichaelMure/git-bug/entities/bug" + "github.com/MichaelMure/git-bug/entities/common" "github.com/MichaelMure/git-bug/entity" "github.com/MichaelMure/git-bug/util/colors" ) @@ -624,10 +625,10 @@ func (sb *showBug) setTitle(g *gocui.Gui, v *gocui.View) error { func (sb *showBug) toggleOpenClose(g *gocui.Gui, v *gocui.View) error { switch sb.bug.Snapshot().Status { - case bug.OpenStatus: + case common.OpenStatus: _, err := sb.bug.Close() return err - case bug.ClosedStatus: + case common.ClosedStatus: _, err := sb.bug.Open() return err default: |