mirror of
https://github.com/openwrt/luci
synced 2025-01-09 04:28:37 +08:00
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>
This commit is contained in:
parent
79e9a4717b
commit
d3ba74ed9b
@ -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'))
|
||||
])
|
||||
]);
|
||||
|
Loading…
Reference in New Issue
Block a user