diff options
author | Paul Donald <newtwen+github@gmail.com> | 2024-10-28 14:22:37 +0100 |
---|---|---|
committer | Paul Donald <newtwen+github@gmail.com> | 2024-10-28 14:22:37 +0100 |
commit | d3ba74ed9b8b039632e5cf79f9833e07fba694db (patch) | |
tree | 42b8ce77d3b1cfe11aabaeb8eabe5b6796b2620b /modules/luci-mod-system/htdocs/luci-static | |
parent | 79e9a4717b65e20ee81abc43d36f9e0cd28e0a5b (diff) |
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 <newtwen+github@gmail.com>
Diffstat (limited to 'modules/luci-mod-system/htdocs/luci-static')
-rw-r--r-- | modules/luci-mod-system/htdocs/luci-static/resources/view/system/startup.js | 1 |
1 files changed, 1 insertions, 0 deletions
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 e9319ea2d0..3fc48197d3 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')) ]) ]); |