TUI: add quit confirmation

This commit is contained in:
Moira Daniella A Sebastian
2026-03-20 13:55:00 +01:00
parent 6a91abc13f
commit 6d72c9195b
10 changed files with 151 additions and 4 deletions

View File

@@ -82,6 +82,10 @@ func (m *Model) View() string {
mainView = lipgloss.JoinVertical(lipgloss.Left, header, content, spacer, footer)
}
if m.confirmingQuit {
return components.RenderConfirmQuit(m.width, m.height)
}
if m.choosingCloseReason {
reasonContent := lipgloss.JoinVertical(lipgloss.Left,
styles.LabelStyle.Render("Choose closing reason for "+m.closeReasonIssueID+":"),
@@ -114,6 +118,7 @@ func (m *Model) View() string {
return components.RenderModals(
m.width,
m.height,
m.confirmingQuit,
m.editingTitle,
m.titleInput.View(),
m.editingDescription,