summaryrefslogtreecommitdiff
path: root/internal/tui/commands.go
diff options
context:
space:
mode:
authorT <t@tjp.lol>2025-08-13 23:09:07 -0600
committerT <t@tjp.lol>2025-08-13 23:09:38 -0600
commit99b4888709b8b9dc435bff476cb73210e91017cc (patch)
tree3045f926be8832d2f1865ffad53319c2b5b39a1a /internal/tui/commands.go
parent5c076e605185a09b1e570f9aa3c5ddb784ace0f3 (diff)
edit clients and projects
Diffstat (limited to 'internal/tui/commands.go')
-rw-r--r--internal/tui/commands.go37
1 files changed, 21 insertions, 16 deletions
diff --git a/internal/tui/commands.go b/internal/tui/commands.go
index 363b570..66a0c4d 100644
--- a/internal/tui/commands.go
+++ b/internal/tui/commands.go
@@ -14,22 +14,23 @@ import (
)
type (
- navigationMsg struct{ Forward bool }
- selectionMsg struct{ Forward bool }
- selectionToEnd struct{ Top bool }
- drillDownMsg struct{}
- drillUpMsg struct{}
- modalClosed struct{}
- openTimeEntryEditor struct{}
- openContractorEditor struct{}
- openModalUnchanged struct{}
- openDeleteConfirmation struct{}
- recheckBounds struct{}
- openCreateClientModal struct{}
- openCreateProjectModal struct{}
- openHistoryFilterModal struct{}
- openReportModal struct{}
- updateHistoryFilter HistoryFilter
+ navigationMsg struct{ Forward bool }
+ selectionMsg struct{ Forward bool }
+ selectionToEnd struct{ Top bool }
+ drillDownMsg struct{}
+ drillUpMsg struct{}
+ modalClosed struct{}
+ openTimeEntryEditor struct{}
+ openContractorEditor struct{}
+ openClientOrProjectEditor struct{}
+ openModalUnchanged struct{}
+ openDeleteConfirmation struct{}
+ recheckBounds struct{}
+ openCreateClientModal struct{}
+ openCreateProjectModal struct{}
+ openHistoryFilterModal struct{}
+ openReportModal struct{}
+ updateHistoryFilter HistoryFilter
)
func navigate(forward bool) tea.Cmd {
@@ -105,6 +106,10 @@ func editContractor() tea.Cmd {
return func() tea.Msg { return openContractorEditor{} }
}
+func editClientOrProject() tea.Cmd {
+ return func() tea.Msg { return openClientOrProjectEditor{} }
+}
+
func reOpenModal() tea.Cmd {
return func() tea.Msg { return openModalUnchanged{} }
}