dashboard: drop misleading manager-special bulk-stop confirm (#443)
mirror of the #445 fix on the bulk-action side: mara's dont
This commit is contained in:
parent
a366c00e0e
commit
086cbc0311
1 changed files with 5 additions and 10 deletions
|
|
@ -796,18 +796,13 @@ window.marked = marked;
|
|||
});
|
||||
// #443 also lifts the manager-stop guard: when the whole selection
|
||||
// is running, ST0P applies — manager included. host-side hive-c0re
|
||||
// keeps serving the dashboard either way. Per-agent confirm message
|
||||
// calls out the manager case ("approvals pause until restart") when
|
||||
// the manager is in the set.
|
||||
// keeps serving the dashboard either way + per-agent approvals +
|
||||
// meta-input updates still work without the manager up, so we
|
||||
// don't special-case the confirm prompt when the manager is in
|
||||
// the selection (mara: "dont special case manager for stopping").
|
||||
addBulkButton(actions, 'btn-stop', '■ ST0P', allRunning, selected, {
|
||||
action: '/kill/',
|
||||
confirm: (names) => {
|
||||
const hasManager = selected.some((c) => c.is_manager);
|
||||
const base = `stop ${names.length} agent${names.length === 1 ? '' : 's'} (${names.join(', ')})?`;
|
||||
return hasManager
|
||||
? base + ' approvals + meta operations pause until the manager is restarted.'
|
||||
: base;
|
||||
},
|
||||
confirm: (names) => `stop ${names.length} agent${names.length === 1 ? '' : 's'} (${names.join(', ')})?`,
|
||||
disabledTitle: why('■ ST0P', stoppedNames.map((n) => `\`${n}\` is already stopped`)),
|
||||
});
|
||||
addBulkButton(actions, 'btn-start', '▶ ST4RT', allStopped, selected, {
|
||||
|
|
|
|||
Loading…
Reference in a new issue