mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2026-05-04 15:39:50 +02:00
build
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user