Don't collapse the task entry if 'Stop Task' is pressed

This commit is contained in:
cmdr2 2022-12-12 19:56:27 +05:30
parent 44d5809e46
commit 92030a3917

View File

@ -820,6 +820,8 @@ function createTask(task) {
task['stopTask'] = taskEntry.querySelector('.stopTask') task['stopTask'] = taskEntry.querySelector('.stopTask')
task['stopTask'].addEventListener('click', (e) => { task['stopTask'].addEventListener('click', (e) => {
e.stopPropagation()
let question = (task['isProcessing'] ? "Stop this task?" : "Remove this task?") let question = (task['isProcessing'] ? "Stop this task?" : "Remove this task?")
shiftOrConfirm(e, question, async function(e) { shiftOrConfirm(e, question, async function(e) {
if (task.batchesDone <= 0 || !task.isProcessing) { if (task.batchesDone <= 0 || !task.isProcessing) {