mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-04-03 05:11:04 +02:00
Don't propagate events in the Stop Task button
This commit is contained in:
parent
929b245f5f
commit
1fed3ad532
@ -873,7 +873,8 @@ function createTask(task) {
|
|||||||
task['progressBar'] = taskEntry.querySelector('.progress-bar')
|
task['progressBar'] = taskEntry.querySelector('.progress-bar')
|
||||||
task['stopTask'] = taskEntry.querySelector('.stopTask')
|
task['stopTask'] = taskEntry.querySelector('.stopTask')
|
||||||
|
|
||||||
task['stopTask'].addEventListener('click', async function() {
|
task['stopTask'].addEventListener('click', async function(e) {
|
||||||
|
e.stopPropagation()
|
||||||
if (task['isProcessing']) {
|
if (task['isProcessing']) {
|
||||||
task.isProcessing = false
|
task.isProcessing = false
|
||||||
task.progressBar.classList.remove("active")
|
task.progressBar.classList.remove("active")
|
||||||
|
Loading…
Reference in New Issue
Block a user