From 44889f6158f6b3f98b024871197d4a824a5963f0 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Tue, 1 Jan 2019 06:59:59 -0600 Subject: [PATCH] Fix bulk export --- _locales/en/messages.json | 7 +- js/prefs.js | 1 + manage.html | 12 +-- manage/bulk-actions.js | 24 +++-- manage/tooltips.css | 2 +- sync/import-export-dropbox.js | 177 ++++++++++++++++++++++++++++++++++ 6 files changed, 208 insertions(+), 15 deletions(-) create mode 100644 sync/import-export-dropbox.js diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 604d354d..266ec1c9 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -93,7 +93,8 @@ "description": "Message for backup" }, "bckpInstStyles": { - "message": "Export styles" + "message": "Local device", + "description": "Selected option to backup indicated styles to local device/drive" }, "checkAllUpdates": { "message": "Check all styles for updates", @@ -1238,6 +1239,10 @@ "message": "Click to open the filter, search and bulk actions panel", "description": "Text for button to apply the selected action" }, + "bulkActionsError": { + "message": "Choose at least one style", + "description": "Error displayed in a tooltip when the user attempts to apply an action with no styles selected" + }, "sectionAdd": { "message": "Add another section", "description": "Label for the button to add a section" diff --git a/js/prefs.js b/js/prefs.js index b98dd1fe..4f1f6f12 100644 --- a/js/prefs.js +++ b/js/prefs.js @@ -27,6 +27,7 @@ self.prefs = self.INJECTED === 1 ? self.prefs : (() => { 'manage.onlyEnabled.invert': false, // display only disabled styles 'manage.onlyLocal.invert': false, // display only externally installed styles 'manage.onlyUsercss.invert': false, // display only non-usercss (standard) styles + 'manage.export.destination': 'local', // default export destination (local or dropbox) 'manage.newUI.favicons': false, // show favicons for the sites in applies-to 'manage.newUI.faviconsGray': true, // gray out favicons diff --git a/manage.html b/manage.html index 8b7dfa14..25971909 100644 --- a/manage.html +++ b/manage.html @@ -175,7 +175,7 @@ @@ -360,7 +360,7 @@ - @@ -430,7 +430,7 @@ - @@ -445,9 +445,9 @@