dashboard: label graceful-stop queue entries 'stopping…' on agent cards
#1785 routes a graceful stop through the rebuild queue as a GracefulStop entry (wire kind 'graceful_stop'). The SW4RM container-row badge renderer didn't recognise that kind, so an in-flight graceful stop fell through to the generic 'rebuilding' / 'rebuild queued' label. Add the case so the card shows 'stopping…' (running) / 'stop queued' (queued), giving the graceful stop the same live card progress as a rebuild. Doc the badge kind too.
This commit is contained in:
parent
2dda2f3c74
commit
cba02fc47e
2 changed files with 12 additions and 9 deletions
|
|
@ -874,13 +874,15 @@ window.marked = marked;
|
|||
const op = !transientKind ? inFlight.get(c.name) : null;
|
||||
const pending = transientKind
|
||||
|| (op && (op.state === 'running'
|
||||
? (op.kind === 'meta_update' ? 'meta-updating'
|
||||
: op.kind === 'destroy' ? 'destroying'
|
||||
: op.kind === 'restart' ? 'restarting'
|
||||
? (op.kind === 'meta_update' ? 'meta-updating'
|
||||
: op.kind === 'destroy' ? 'destroying'
|
||||
: op.kind === 'restart' ? 'restarting'
|
||||
: op.kind === 'graceful_stop' ? 'stopping'
|
||||
: 'rebuilding')
|
||||
: (op.kind === 'meta_update' ? 'meta-update queued'
|
||||
: op.kind === 'destroy' ? 'destroy queued'
|
||||
: op.kind === 'restart' ? 'restart queued'
|
||||
: (op.kind === 'meta_update' ? 'meta-update queued'
|
||||
: op.kind === 'destroy' ? 'destroy queued'
|
||||
: op.kind === 'restart' ? 'restart queued'
|
||||
: op.kind === 'graceful_stop' ? 'stop queued'
|
||||
: 'rebuild queued')));
|
||||
const opRunning = transientKind != null
|
||||
|| (op != null && op.state === 'running');
|
||||
|
|
|
|||
Loading…
Reference in a new issue