style: emphasize update download cancellation

Render the active download cancellation action with a red background and black text, retaining the danger styling while cancellation is pending.
This commit is contained in:
Sucukdeluxe
2026-08-21 00:01:03 +02:00
parent 577e1dd9c9
commit 82ad5db7a5
3 changed files with 15 additions and 1 deletions
+1
View File
@@ -7690,6 +7690,7 @@ function _setUpdateDialogBusy(busy, cancelable = false) {
if (installButton) installButton.disabled = busy;
if (closeButton) closeButton.disabled = busy;
if (dismissButton) {
dismissButton.classList.toggle('update-cancel-button', Boolean(busy && cancelable));
dismissButton.disabled = Boolean(busy && (!cancelable || _updateCancelBusy));
dismissButton.textContent = busy && cancelable
? (_updateCancelBusy ? 'Abbrechen…' : 'Download abbrechen')