Skip to content

Commit

Permalink
luci-mod-system: add 'reload' button to software start page
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
systemcrash committed Oct 28, 2024
1 parent 79e9a47 commit d3ba74e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
])
]);
Expand Down

0 comments on commit d3ba74e

Please sign in to comment.