Remove bulk reset

This commit is contained in:
Rob Garrison 2019-01-01 08:05:19 -06:00
parent ead5e747b5
commit a0ba63bb19
2 changed files with 9 additions and 7 deletions

View File

@ -414,7 +414,8 @@
<option i18n-text="disableStyleLabel" value="disable"></option>
<option i18n-text="exportLabel" value="export"></option>
<option i18n-text="checkForUpdate" value="update"></option>
<option i18n-text="genericResetLabel" value="reset"></option>
<!-- Plan: Reset UserCSS variables -->
<!-- <option i18n-text="genericResetLabel" value="reset"></option> -->
<option i18n-text="deleteStyleLabel" value="delete"></option>
</select>
<svg class="svg-icon select-arrow"><use xlink:href="#svg-icon-select-arrow"/></svg>

View File

@ -1,4 +1,4 @@
/* global $ $$ API t prefs handleEvent installed exportToFile checkUpdateAll exportDropbox
/* global $ $$ API t prefs handleEvent installed exportToFile checkUpdate exportDropbox
messageBox */
/* exported bulk */
'use strict';
@ -26,8 +26,8 @@ const bulk = {
case 'update':
$('[data-bulk="update"]').classList.remove('hidden');
break;
case 'reset':
break;
// case 'reset':
// break;
case 'delete':
break;
}
@ -60,10 +60,11 @@ const bulk = {
return exportToFile(styles);
}
case 'update':
checkUpdateAll(entries); // TO DO
break;
case 'reset':
styles = entries.map(entry => entry.styleMeta);
checkUpdate(styles); // TO DO: don't check all styles
break;
// case 'reset':
// break;
case 'delete':
styles = entries.reduce((acc, entry) => {
const style = entry.styleMeta;