From d3ba74ed9b8b039632e5cf79f9833e07fba694db Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Mon, 28 Oct 2024 14:22:37 +0100 Subject: [PATCH] luci-mod-system: add 'reload' button to software start page Often restart is not what is necessary, and can trigger longer outages. Reload is often sufficient, especially for things like rpcd. Signed-off-by: Paul Donald --- .../htdocs/luci-static/resources/view/system/startup.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/startup.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/startup.js index e9319ea2d020..3fc48197d310 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/startup.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/startup.js @@ -97,6 +97,7 @@ return view.extend({ this.renderEnableDisable(list[i]), E('button', { 'class': 'btn cbi-button-action', 'click': ui.createHandlerFn(this, 'handleAction', list[i].name, 'start'), 'disabled': isReadonlyView }, _('Start')), E('button', { 'class': 'btn cbi-button-action', 'click': ui.createHandlerFn(this, 'handleAction', list[i].name, 'restart'), 'disabled': isReadonlyView }, _('Restart')), + E('button', { 'class': 'btn cbi-button-action', 'click': ui.createHandlerFn(this, 'handleAction', list[i].name, 'reload'), 'disabled': isReadonlyView }, _('Reload')), E('button', { 'class': 'btn cbi-button-action', 'click': ui.createHandlerFn(this, 'handleAction', list[i].name, 'stop'), 'disabled': isReadonlyView }, _('Stop')) ]) ]);