diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2021-08-01 11:06:19 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2021-08-01 11:06:19 -0700 |
| commit | c1ab228e2b991fba3ff2111668ddfb0d3be3125d (patch) | |
| tree | 67704a01a0e85d2ca5e60c8c80de740e9f8985d3 /hotline | |
| parent | 3d2bd095b354c5ba84f51073b26c752290467784 (diff) | |
Minor cleanup of news post modal
Diffstat (limited to 'hotline')
| -rw-r--r-- | hotline/ui.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hotline/ui.go b/hotline/ui.go index 5056954..5f1670d 100644 --- a/hotline/ui.go +++ b/hotline/ui.go @@ -341,7 +341,8 @@ func (ui *UI) renderServerUI() *tview.Flex { newsPostForm := tview.NewForm(). SetButtonsAlign(tview.AlignRight). - AddButton("Post", nil) + //AddButton("Cancel", nil). // TODO: implement cancel button behavior + AddButton("Send", nil) newsPostForm.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey { switch event.Key() { case tcell.KeyTab: @@ -357,7 +358,6 @@ func (ui *UI) renderServerUI() *tview.Flex { ui.HLClient.Logger.Errorw("Error posting news", "err", err) // TODO: display errModal to user } - //newsInput.SetText("") // clear the input field after chat send ui.Pages.RemovePage("newsInput") } @@ -367,7 +367,7 @@ func (ui *UI) renderServerUI() *tview.Flex { newsFlex. SetDirection(tview.FlexRow). SetBorder(true). - SetTitle("News Post") + SetTitle("| Post Message |") newsPostTextArea.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey { ui.HLClient.Logger.Infow("key", "key", event.Key(), "rune", event.Rune()) |