diff options
author | Kuuuube <61125188+Kuuuube@users.noreply.github.com> | 2024-05-15 02:55:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-15 06:55:58 +0000 |
commit | e9b147d20c0004abc74adafc3cb4c361bb9757f5 (patch) | |
tree | 2cd6759193d937946dcb2fdbc73a521493929415 /ext/welcome.html | |
parent | 7a4b832ccfeb7f13857340cc93b30214d6b53106 (diff) |
Allow setting optional permissions on welcome page (#942)
* Differentiate between recommended and full permissions on welcome page
* Allow setting optional permissions from welcome page
* Fix early return causing firefox permission text to not update correctly
Diffstat (limited to 'ext/welcome.html')
-rw-r--r-- | ext/welcome.html | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/ext/welcome.html b/ext/welcome.html index f2192686..dd3e2f1e 100644 --- a/ext/welcome.html +++ b/ext/welcome.html @@ -31,15 +31,30 @@ <div class="settings-item"><div class="settings-item-inner"> <div class="settings-item-left"> <div class="settings-item-label">Enable recommended permissions</div> - <div class="settings-item-description">This will allow Yomitan to scan text from most sites. Further configuration is available on the <a href="/permissions.html" rel="noopener">Permissions page</a>.</div> - <div class="danger-text margin-above" id="permissions-disabled" hidden><strong>Yomitan features will be limited if the recommended permissions are not enabled.</strong></div> - <div class="success-text margin-above" id="permissions-enabled" hidden><strong>All Yomitan features are available.</strong></div> - <div id="recommended-permissions-error" class="margin-above danger-text" hidden></div> + <div class="settings-item-description">This will allow Yomitan to scan text from most sites.</div> </div> <div class="settings-item-right"> <label class="toggle"><input type="checkbox" id="recommended-permissions-toggle" data-origin="<all_urls>"><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"> + <div class="settings-item-left"> + <div class="settings-item-label">Enable optional permissions</div> + <div class="settings-item-description">This will allow Yomitan to read the clipboard and communicate with external programs.</div> + </div> + <div class="settings-item-right"> + <label class="toggle"><input type="checkbox" id="optional-permissions-toggle" data-origin="<all_urls>"><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"> + <div class="settings-item-left"> + <div class="settings-item-description">Further configuration is available on the <a href="/permissions.html" rel="noopener">Permissions page</a> and the web browser's <a tabindex="0" class="extension-settings-link" data-special-url="chrome://extensions/?id={id}">extension settings page</a>.</div> + <div class="danger-text margin-above" id="permissions-disabled" hidden><strong>Yomitan features will be limited if the recommended permissions are not enabled.</strong></div> + <div class="success-text margin-above" id="recommended-permissions-enabled" hidden><strong>Essential Yomitan features are available.</strong></div> + <div class="success-text margin-above" id="full-permissions-enabled" hidden><strong>All Yomitan features are available.</strong></div> + <div id="recommended-permissions-error" class="margin-above danger-text" hidden></div> + </div> + </div></div> </div> <!-- Notifications --> |