Files
bee/audit/internal/tui/screen_export.go
2026-03-16 18:20:26 +03:00

21 lines
524 B
Go

package tui
import tea "github.com/charmbracelet/bubbletea"
func (m model) handleExportTargetsMenu() (tea.Model, tea.Cmd) {
if len(m.targets) == 0 {
title := "Export audit"
if m.pendingAction == actionExportBundle {
title = "Export support bundle"
}
return m, resultCmd(title, "No removable filesystems found", nil, screenMain)
}
target := m.targets[m.cursor]
m.selectedTarget = &target
if m.pendingAction == actionNone {
m.pendingAction = actionExportAudit
}
m.screen = screenConfirm
return m, nil
}