dashboard: keep bulk/M0V3 partial-failure toasts until dismissed

The bulk-stop / M0V3 failure summaries list which agents failed; as
auto-dismissing toasts an operator could miss a partial failure after
navigating away. Make just those two summaries sticky (duration 0,
click-to-dismiss); transient single-action errors keep auto-dismiss.
This commit is contained in:
iris 2026-06-19 02:08:11 +02:00 committed by mara
commit 5b99eb1f8f

View file

@ -1105,7 +1105,7 @@ window.marked = marked;
sel.disabled = false;
sel.selectedIndex = 0;
if (failures.length) {
themedToast(`M0V3 completed with ${failures.length} failure${failures.length === 1 ? '' : 's'}:\n\n` + failures.join('\n'), { type: 'error' });
themedToast(`M0V3 completed with ${failures.length} failure${failures.length === 1 ? '' : 's'}:\n\n` + failures.join('\n'), { type: 'error', duration: 0 });
}
});
wrap.append(sel);
@ -1216,7 +1216,7 @@ window.marked = marked;
btn.disabled = false;
btn.innerHTML = original;
if (failures.length) {
themedToast(`${label} completed with ${failures.length} failure${failures.length === 1 ? '' : 's'}:\n\n` + failures.join('\n'), { type: 'error' });
themedToast(`${label} completed with ${failures.length} failure${failures.length === 1 ? '' : 's'}:\n\n` + failures.join('\n'), { type: 'error', duration: 0 });
}
// Container-lifecycle events (ContainerStateChanged /
// ContainerRemoved / RebuildQueueChanged) flow over the existing