(action notify.ConfirmActionType)
| 238 | } |
| 239 | |
| 240 | func (m *model) handleNotifyModelCancel(action notify.ConfirmActionType) tea.Cmd { |
| 241 | switch action { |
| 242 | case notify.RenameAction: |
| 243 | m.cancelRename() |
| 244 | case notify.QuitAction: |
| 245 | m.modelQuitState = notQuitting |
| 246 | case notify.DeleteAction, notify.NoAction, notify.PermanentDeleteAction: |
| 247 | // Do nothing |
| 248 | default: |
| 249 | slog.Error("Unknown type of action", "action", action) |
| 250 | } |
| 251 | return nil |
| 252 | } |
| 253 | |
| 254 | func (m *model) handleNotifyModelConfirm(action notify.ConfirmActionType) tea.Cmd { |
| 255 | switch action { |
no test coverage detected