swarm-ui: tooltip on the inert wanted badge says to create the agent at swarm level; docs note destroy needs it too
This commit is contained in:
parent
d8c2fb91b2
commit
711e413901
2 changed files with 4 additions and 2 deletions
|
|
@ -39,7 +39,8 @@ agent the swarm never declared on its hive, such as one only its hive knows
|
|||
about, the badge reads **no declaration** and doesn't open: create the agent
|
||||
with `swarmctl agent create` or **+ agent**, which declares it `paused`. The API
|
||||
answers `PUT /api/hives/{hive}/agents/{agent}/state` for such an agent with
|
||||
404 and says to create it at swarm level.
|
||||
404 and says to create it at swarm level. Destroying such an agent needs the same
|
||||
create first, since the badge is the only way to destroy.
|
||||
|
||||
An agent created here or with `swarmctl agent create` starts `paused`; set it
|
||||
`up` from its card. A card shows **login needed** when the agent's own
|
||||
|
|
|
|||
|
|
@ -83,6 +83,7 @@ export function WantedMenu({
|
|||
return (
|
||||
<div class="ui-dropdown-anchor" ref={anchorRef}>
|
||||
<Badge
|
||||
value={pending ? "…" : (row.wanted ?? "no declaration")}
|
||||
tone={tone}
|
||||
// `destroyed` and an undeclared row block opening the menu at
|
||||
// all — a UX-only guard, the server enforces both (see
|
||||
|
|
@ -96,7 +97,7 @@ export function WantedMenu({
|
|||
: !row.hive
|
||||
? "no hive on record for this agent — nothing to declare against"
|
||||
: undeclared
|
||||
? `${row.name} is not declared at swarm level — create it there`
|
||||
? "not declared at swarm level: create it there to manage it"
|
||||
: `declare a new state for ${row.name}`
|
||||
}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue