From 4e7d1988eea99f6120b20e9771ca3a9b2efa7773 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Wed, 15 Dec 2021 19:12:05 -0500 Subject: [PATCH] Confirm batch tag abort --- assets/js/quick-tag.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/assets/js/quick-tag.js b/assets/js/quick-tag.js index 635b9617..1c430685 100644 --- a/assets/js/quick-tag.js +++ b/assets/js/quick-tag.js @@ -42,10 +42,12 @@ function activate() { function reset() { - store.remove(currentTagStorage); - store.remove(imageQueueStorage); + if (window.confirm('Are you sure you want to abort batch tagging?')) { + store.remove(currentTagStorage); + store.remove(imageQueueStorage); - toggleActiveState(); + toggleActiveState(); + } }