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="disableStyleLabel" value="disable"></option>
<option i18n-text="exportLabel" value="export"></option> <option i18n-text="exportLabel" value="export"></option>
<option i18n-text="checkForUpdate" value="update"></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> <option i18n-text="deleteStyleLabel" value="delete"></option>
</select> </select>
<svg class="svg-icon select-arrow"><use xlink:href="#svg-icon-select-arrow"/></svg> <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 */ messageBox */
/* exported bulk */ /* exported bulk */
'use strict'; 'use strict';
@ -26,8 +26,8 @@ const bulk = {
case 'update': case 'update':
$('[data-bulk="update"]').classList.remove('hidden'); $('[data-bulk="update"]').classList.remove('hidden');
break; break;
case 'reset': // case 'reset':
break; // break;
case 'delete': case 'delete':
break; break;
} }
@ -60,10 +60,11 @@ const bulk = {
return exportToFile(styles); return exportToFile(styles);
} }
case 'update': case 'update':
checkUpdateAll(entries); // TO DO styles = entries.map(entry => entry.styleMeta);
break; checkUpdate(styles); // TO DO: don't check all styles
case 'reset':
break; break;
// case 'reset':
// break;
case 'delete': case 'delete':
styles = entries.reduce((acc, entry) => { styles = entries.reduce((acc, entry) => {
const style = entry.styleMeta; const style = entry.styleMeta;