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:
parent
7c2de690ec
commit
5b99eb1f8f
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue