service view: allow overwriting restart command

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-07-24 14:06:58 +02:00
parent 77ff40e479
commit 2815c42893

View 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");
},
});