Fix ordering of core system commands & slight rewording

This commit is contained in:
Gina Häußge 2016-11-18 13:05:26 +01:00
parent f83625acba
commit 2564820d16

View file

@ -129,19 +129,19 @@ def _get_core_command_specs():
commands = collections.OrderedDict(
shutdown=dict(
command=s().get(["server", "commands", "systemShutdownCommand"]),
name=gettext("Shutdown"),
name=gettext("Shutdown system"),
confirm=gettext("You are about to shutdown the system.")),
reboot=dict(
command=s().get(["server", "commands", "systemRestartCommand"]),
name=gettext("Reboot"),
name=gettext("Reboot system"),
confirm=gettext("You are about to reboot the system.")),
restart=dict(
command=s().get(["server", "commands", "serverRestartCommand"]),
name="Restart OctoPrint",
confirm="You are about to restart the OctoPrint server.")
name=gettext("Restart OctoPrint"),
confirm=gettext("You are about to restart the OctoPrint server."))
)
available_commands = dict()
available_commands = collections.OrderedDict()
for action, spec in commands.items():
if not spec["command"]:
continue