From a632c576552f25945a60336e12cf1d3eb45d5d32 Mon Sep 17 00:00:00 2001 From: Dan Anglin Date: Wed, 10 Jan 2024 18:49:27 +0000 Subject: [PATCH] fix(ui): set the card modal's title. Set the card modal's title based on whether the card is being created or edited. --- internal/ui/ui.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/ui/ui.go b/internal/ui/ui.go index df221ac..d141039 100644 --- a/internal/ui/ui.go +++ b/internal/ui/ui.go @@ -97,6 +97,7 @@ func (u *UI) init() error { if u.mode == normal { u.cardModal.mode = create u.cardModal.updateInputFields("", "") + u.cardModal.frame.SetTitle(" Create Card ") u.pages.ShowPage(cardModalPage) u.SetFocus(u.cardModal) } @@ -114,6 +115,7 @@ func (u *UI) init() error { cardID := u.columns[u.focusedColumn].cards[focusedCard].id card, _ := u.board.Card(cardID) u.cardModal.updateInputFields(card.Title, card.Description) + u.cardModal.frame.SetTitle(" Edit Card ") u.pages.ShowPage(cardModalPage) u.SetFocus(u.cardModal) }