update:qol
This commit is contained in:
@@ -7,7 +7,6 @@ type ServerActionsPageMsg struct {
|
||||
func ServerActionItems() []MenuItem {
|
||||
return []MenuItem{
|
||||
{Label: "Send", Key: "send"},
|
||||
{Label: "Get", Key: "get"},
|
||||
{Label: "Clean", Key: "clean"},
|
||||
{Label: "Clean All", Key: "clean"},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ func (m TUIInterface) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
m.MenuItems = pages.ServerActionItems()
|
||||
m.Selected = 0
|
||||
m.FileSelected = 0
|
||||
m.FileFocused = false
|
||||
m.FileFocused = true
|
||||
m.StorageFiles = nil
|
||||
m.StorageErr = nil
|
||||
m.StorageLoading = true
|
||||
@@ -256,10 +256,8 @@ func (m TUIInterface) updateServerActions(msg tea.KeyPressMsg) (tea.Model, tea.C
|
||||
switch m.MenuItems[m.Selected].Key {
|
||||
case "send":
|
||||
// TODO: navigate to send page
|
||||
case "get":
|
||||
// TODO: navigate to get page (bulk)
|
||||
case "clean":
|
||||
// TODO: navigate to clean page (bulk)
|
||||
// TODO: navigate to clean all page
|
||||
}
|
||||
|
||||
case "ctrl+c":
|
||||
|
||||
Reference in New Issue
Block a user