This commit is contained in:
2026-03-21 10:36:53 +01:00
parent 9986c1bc03
commit 4a3609ef27
2 changed files with 43 additions and 13 deletions
+5 -2
View File
@@ -302,6 +302,7 @@ def prompt_missing_args(args_in, defaults_in, fields, action=None,stacks=None):
commands.sort()
commands_tuples = [(cmd, cmd) for cmd in commands]
commands_tuples.insert(0, ("__ALL__", "[Select ALL]"))
commands_tuples.insert(0, ("mandatory", "[Mandatory]"))
value_in = checkboxlist_dialog(
title="Select Services",
text="Choose one or more services:",
@@ -314,12 +315,14 @@ def prompt_missing_args(args_in, defaults_in, fields, action=None,stacks=None):
elif "__ALL__" in value_in:
# User selected "Select ALL"
value_in = commands # all real commands
elif "mandatory" in value_in:
# User selected "Select ALL"
value_in = ['pihole', 'nginx', 'authentik', 'hashicorp', 'mosquitto','homepage', 'mailu3', 'home-assistant', 'mediacenter' ] # all real commands
value_in.sort()
if "pihole" in value_in:
if action == "delete_stack":
if args.action == "delete_stack":
value_in.remove("pihole")
value_in.append("pihole")
else: