fix close modal

This commit is contained in:
Robin Olsen
2026-03-20 17:11:51 +01:00
parent 2abddd5b54
commit 14e64f73f2
9 changed files with 64 additions and 24 deletions

View File

@@ -163,6 +163,15 @@ func (m *Manager) RenderWithMainView(mainView string) string {
// RegisterCommonModals registers the standard set of modals used across views.
// This helper reduces duplication between dashboard and kanban views.
func RegisterCommonModals(m *Manager) {
// Exit Confirm Modal
m.RegisterModal(NewConfirmModal(ConfirmConfig{
ID: ModalConfirmExit,
Message: "Close the task and interface?",
YesKeys: []string{"y", "Y"},
NoKeys: []string{"n", "N", "esc"},
}))
// Edit Title Modal
m.RegisterModal(NewTextInputModal(TextInputConfig{
ID: ModalEditTitle,