From: Dirk Brenken Date: Fri, 30 Oct 2020 19:30:37 +0000 (+0100) Subject: luci-app-adblock: change "refresh" action X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f90a9b7a21a5325bb5f810c7366b20913c0cc671;p=project%2Fluci.git luci-app-adblock: change "refresh" action * change "refresh" action to fix potential white-/blacklist issues Signed-off-by: Dirk Brenken (cherry picked from commit a392dbf888f0cdaee211eca9b58becc804ee3458) --- diff --git a/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js b/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js index 8b5e00f4b1..47213856da 100644 --- a/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js +++ b/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js @@ -250,7 +250,7 @@ return L.view.extend({ E('button', { 'class': 'cbi-button cbi-button-apply', 'click': ui.createHandlerFn(this, function() { - return handleAction('start'); + return handleAction('reload'); }) }, [ _('Refresh') ]) ]) diff --git a/applications/luci-app-adblock/root/usr/share/rpcd/acl.d/luci-app-adblock.json b/applications/luci-app-adblock/root/usr/share/rpcd/acl.d/luci-app-adblock.json index 557e5328c3..3a6e391e32 100644 --- a/applications/luci-app-adblock/root/usr/share/rpcd/acl.d/luci-app-adblock.json +++ b/applications/luci-app-adblock/root/usr/share/rpcd/acl.d/luci-app-adblock.json @@ -18,7 +18,7 @@ "/sbin/logread -e adblock-": [ "exec" ], "/usr/sbin/logread -e adblock-": [ "exec" ], "/etc/init.d/adblock list" : [ "exec" ], - "/etc/init.d/adblock start" : [ "exec" ], + "/etc/init.d/adblock reload" : [ "exec" ], "/etc/init.d/adblock suspend" : [ "exec" ], "/etc/init.d/adblock resume" : [ "exec" ], "/etc/init.d/adblock report * [0-9]* [a-z]* json" : [ "exec" ],