Cancel/Stop/Remove task buttons (#1493)

* Cancel/Stop/Remove task
So far, the button to remove a not yet rendered and a completed task was labeled 'Remove'. This can lead to confusions.
This PR changes the label to 'Cancel' for not yet rendered tasks. It also changes the color of the undoable 'Remove' button

* Keep the button color as red
This commit is contained in:
JeLuF 2023-08-24 12:37:58 +02:00 committed by GitHub
parent 9572ddf1c1
commit 1b6aae9678
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1068,7 +1068,7 @@ function createTask(task) {
taskEntry.innerHTML = ` <div class="header-content panel collapsible active">
<i class="drag-handle fa-solid fa-grip"></i>
<div class="taskStatusLabel">Enqueued</div>
<button class="secondaryButton stopTask"><i class="fa-solid fa-trash-can"></i> Remove</button>
<button class="secondaryButton stopTask"><i class="fa-solid fa-xmark"></i> Cancel</button>
<button class="tertiaryButton useSettings"><i class="fa-solid fa-redo"></i> Use these settings</button>
<div class="preview-prompt"></div>
<div class="taskConfig">${taskConfig}</div>