From a0ba63bb19cb7c57ff4f34866f585c6e9c717dae Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Tue, 1 Jan 2019 08:05:19 -0600 Subject: [PATCH] Remove bulk reset --- manage.html | 3 ++- manage/bulk-actions.js | 13 +++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/manage.html b/manage.html index 04982d01..c55c676d 100644 --- a/manage.html +++ b/manage.html @@ -414,7 +414,8 @@ - + + diff --git a/manage/bulk-actions.js b/manage/bulk-actions.js index 08283a2c..4b7645d3 100644 --- a/manage/bulk-actions.js +++ b/manage/bulk-actions.js @@ -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;