aboutsummaryrefslogtreecommitdiffstats
path: root/termui/termui.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-08-12 21:09:30 +0200
committerMichael Muré <batolettre@gmail.com>2018-08-12 21:09:30 +0200
commite2f4b027c946831c3f4f119d87a80513c7cf8fdc (patch)
treeb2ec57c89c49062ab2e8adeacb2646d2f152db80 /termui/termui.go
parent721ed3248e8bf167a89df14d9fc2bf5b0fe45753 (diff)
downloadgit-bug-e2f4b027c946831c3f4f119d87a80513c7cf8fdc.tar.gz
termui: implement push/pull
Diffstat (limited to 'termui/termui.go')
-rw-r--r--termui/termui.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/termui/termui.go b/termui/termui.go
index 535842e4..b45bbc2e 100644
--- a/termui/termui.go
+++ b/termui/termui.go
@@ -19,7 +19,7 @@ type termUI struct {
bugTable *bugTable
showBug *showBug
- errorPopup *errorPopup
+ msgPopup *msgPopup
inputPopup *inputPopup
}
@@ -49,7 +49,7 @@ func Run(repo repository.Repo) error {
cache: c,
bugTable: newBugTable(c),
showBug: newShowBug(c),
- errorPopup: newErrorPopup(),
+ msgPopup: newMsgPopup(),
inputPopup: newInputPopup(),
}
@@ -106,7 +106,7 @@ func layout(g *gocui.Gui) error {
return err
}
- if err := ui.errorPopup.layout(g); err != nil {
+ if err := ui.msgPopup.layout(g); err != nil {
return err
}
@@ -131,7 +131,7 @@ func keybindings(g *gocui.Gui) error {
return err
}
- if err := ui.errorPopup.keybindings(g); err != nil {
+ if err := ui.msgPopup.keybindings(g); err != nil {
return err
}
@@ -166,7 +166,7 @@ func newBugWithEditor(repo cache.RepoCacher) error {
}
if err == input.ErrEmptyTitle {
- ui.errorPopup.Activate("Empty title, aborting.")
+ ui.msgPopup.Activate(msgPopupErrorTitle, "Empty title, aborting.")
} else {
_, err := repo.NewBug(title, message)
if err != nil {
@@ -199,7 +199,7 @@ func addCommentWithEditor(bug cache.BugCacher) error {
}
if err == input.ErrEmptyMessage {
- ui.errorPopup.Activate("Empty message, aborting.")
+ ui.msgPopup.Activate(msgPopupErrorTitle, "Empty message, aborting.")
} else {
err := bug.AddComment(message)
if err != nil {
@@ -232,7 +232,7 @@ func setTitleWithEditor(bug cache.BugCacher) error {
}
if err == input.ErrEmptyTitle {
- ui.errorPopup.Activate("Empty title, aborting.")
+ ui.msgPopup.Activate(msgPopupErrorTitle, "Empty title, aborting.")
} else {
err := bug.SetTitle(title)
if err != nil {