luci-app-adblock: change "refresh" action
authorDirk Brenken <dev@brenken.org>
Fri, 30 Oct 2020 19:30:37 +0000 (20:30 +0100)
committerDirk Brenken <dev@brenken.org>
Fri, 30 Oct 2020 19:44:06 +0000 (20:44 +0100)
* change "refresh" action to fix potential white-/blacklist issues

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit a392dbf888f0cdaee211eca9b58becc804ee3458)

applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js
applications/luci-app-adblock/root/usr/share/rpcd/acl.d/luci-app-adblock.json

index 8b5e00f4b1d839f3058f955ccec934a510f3215c..47213856dae6996ca86d52fd83aa7ed34475e7df 100644 (file)
@@ -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') ])
                                ])
index 557e5328c39483d3cb8779c6ee216211a231cb2d..3a6e391e32635f2a5087e344ba5c25701faddfd3 100644 (file)
@@ -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" ],