mirror of
https://github.com/PR0M3TH3AN/VoxVera.git
synced 2026-10-27 09:40:40 +00:00
ui: Ensure global actions are visible in manage menu even if no sites exist
This commit is contained in:
1 parent
dd1a5a2557
commit
671dff818a
1 file changed
+4
-6
+4
-6
@@ -675,9 +675,6 @@ def manage_servers():
|
||||
|
||||
while True:
|
||||
servers = get_servers()
|
||||
if not servers:
|
||||
console.print("[red]No servers found. Use 'voxvera build' or 'voxvera quickstart' to create one.[/red]")
|
||||
return
|
||||
|
||||
choices = []
|
||||
for s in servers:
|
||||
@@ -696,9 +693,10 @@ def manage_servers():
|
||||
choices.append(Choice(s, label))
|
||||
|
||||
choices.insert(0, Choice("create_new", "--- Create New Site/Flyer ---"))
|
||||
choices.append(Choice("start_all", "--- Start All Sites ---"))
|
||||
choices.append(Choice("stop_all", "--- Stop All Sites ---"))
|
||||
choices.append(Choice("export_all", "--- Export All Sites ---"))
|
||||
if servers:
|
||||
choices.append(Choice("start_all", "--- Start All Sites ---"))
|
||||
choices.append(Choice("stop_all", "--- Stop All Sites ---"))
|
||||
choices.append(Choice("export_all", "--- Export All Sites ---"))
|
||||
choices.append(Choice("import_multiple", "--- Import Multiple Sites ---"))
|
||||
choices.append(Choice(None, "Exit"))
|
||||
|
||||
|
||||
Reference in new issue
Block a user