diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-02-04 22:17:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-04 22:17:42 -0500 |
commit | 8f97ca0aacd9a9f36038aa680cc6b9929450fbc5 (patch) | |
tree | 098eac7465562f7407cb9978c083378c7d6bcbb3 /ext/bg/settings2.html | |
parent | 47f16862d0d55ccf9755075741c85d9e6e662e73 (diff) |
Permissions toggle controller (#1347)
* Move file, rename class
* Expose required permissions in an attribute
* Update selector
* Update attribute
* Fix global declaration order
Diffstat (limited to 'ext/bg/settings2.html')
-rw-r--r-- | ext/bg/settings2.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/settings2.html b/ext/bg/settings2.html index 9c366ecd..afb7af20 100644 --- a/ext/bg/settings2.html +++ b/ext/bg/settings2.html @@ -1573,7 +1573,7 @@ <div class="settings-item-description">Open the search page in a new window when the clipboard contains Japanese text.</div> </div> <div class="settings-item-right"> - <label class="toggle"><input type="checkbox" class="clipboard-toggle" data-clipboard-setting="clipboard.enableBackgroundMonitor"><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label> + <label class="toggle"><input type="checkbox" class="permissions-toggle" data-permissions-setting="clipboard.enableBackgroundMonitor" data-required-permissions="clipboardRead"><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label> </div> </div></div> <div class="settings-item"><div class="settings-item-inner"> @@ -1583,7 +1583,7 @@ <div class="settings-item-description">The query on the search page will be automatically updated with text in the clipboard.</div> </div> <div class="settings-item-right"> - <label class="toggle"><input type="checkbox" class="clipboard-toggle" data-clipboard-setting="clipboard.enableSearchPageMonitor"><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label> + <label class="toggle"><input type="checkbox" class="permissions-toggle" data-permissions-setting="clipboard.enableSearchPageMonitor" data-required-permissions="clipboardRead"><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label> </div> </div></div> <div class="settings-item"><div class="settings-item-inner settings-item-inner-wrappable"> @@ -3219,7 +3219,7 @@ <script src="/bg/js/settings/anki-templates-controller.js"></script> <script src="/bg/js/settings/audio-controller.js"></script> <script src="/bg/js/settings/backup-controller.js"></script> -<script src="/bg/js/settings/clipboard-popups-controller.js"></script> +<script src="/bg/js/settings/permissions-toggle-controller.js"></script> <script src="/bg/js/settings/dictionary-controller.js"></script> <script src="/bg/js/settings/dictionary-import-controller.js"></script> <script src="/bg/js/settings/generic-setting-controller.js"></script> |