Permalink
Browse files

Dropbox UI bugfix

  • Loading branch information...
mymindstorm committed Sep 13, 2018
1 parent 39a727d commit 40bac1adea18765554910757d9098a940b0fe07c
Showing with 7 additions and 1 deletion.
  1. +6 −0 src/ui/info.ts
  2. +1 −1 view/popup.html
View
@@ -28,6 +28,12 @@ async function info(_ui: UI) {
}
}
} else if (tab === 'dropbox') {
if (localStorage.dropboxEncrypted !== 'true' &&
localStorage.dropboxEncrypted !== 'false') {
localStorage.dropboxEncrypted = 'true';
_ui.instance.dropboxEncrypted = localStorage.dropboxEncrypted;
}
chrome.permissions.request(
{origins: ['https://*.dropboxapi.com/*']}, async (granted) => {
if (granted) {
View
@@ -167,7 +167,7 @@
<!-- DROPBOX -->
<div v-show="info === 'dropbox'">
<div id="dropbox_box">
<div id="dropbox_risk" v-if="dropboxEncrypted !== 'true'">{{ i18n.dropbox_risk }}</div>
<div id="dropbox_risk" v-if="dropboxEncrypted !== 'true' || !encryption.getEncryptionStatus()">{{ i18n.dropbox_risk }}</div>
<div v-if="encryption.getEncryptionStatus() && dropboxToken">
<label for="dropbox_encryption" id="dropbox_encryption_label">{{ i18n.encrypted }}</label>
<select id="dropbox_encryption" v-model="dropboxEncrypted" v-on:change="dropboxUpdateEncryption()">

0 comments on commit 40bac1a

Please sign in to comment.