]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
service view: allow overwriting restart command
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 24 Jul 2020 12:06:58 +0000 (14:06 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 24 Jul 2020 14:09:01 +0000 (16:09 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/node/ServiceView.js

index 913a20faa80b16f2a7a934a185a760e6b0f90083..351ab0987e9bbae8a1947e50817f9e257d6703a7 100644 (file)
@@ -11,6 +11,8 @@ Ext.define('Proxmox.node.ServiceView', {
 
     startOnlyServices: {},
 
+    restartCommand: "restart", // TODO: default to reload once everywhere supported
+
     initComponent: function() {
        let me = this;
 
@@ -100,7 +102,7 @@ Ext.define('Proxmox.node.ServiceView', {
            text: gettext('Restart'),
            disabled: true,
            handler: function() {
-               service_cmd("restart");
+               service_cmd(me.restartCommand || "restart");
            },
        });