summaryrefslogtreecommitdiff
path: root/internal/tui/commands.go
diff options
context:
space:
mode:
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{} }
}