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=a392dbf888f0cdaee211eca9b58becc804ee3458;p=project%2Fluci.git luci-app-adblock: change "refresh" action * change "refresh" action to fix potential white-/blacklist issues Signed-off-by: Dirk Brenken --- 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 9610735d97..e95702a75e 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 @@ -252,7 +252,7 @@ return 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 3f52b7eea2..58140badac 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" ],