deploy the closure the swarm declares, read no forge head, drop the update badge
This commit is contained in:
parent
279428a66f
commit
47c2acb640
1 changed files with 647 additions and 2001 deletions
|
|
@ -196,9 +196,9 @@ document.addEventListener("click", (e) => {
|
|||
// wrapper matching <hive-dialog>'s `._opts`-before-append convention,
|
||||
// since a custom element created via `document.createElement` can't
|
||||
// take constructor args.
|
||||
function buildAgentMenu(c, forgeBase) {
|
||||
function buildAgentMenu(c) {
|
||||
const menu = document.createElement("hive-agent-menu");
|
||||
menu._opts = { c, forgeBase };
|
||||
menu._opts = { c };
|
||||
return menu;
|
||||
}
|
||||
|
||||
|
|
@ -255,7 +255,6 @@ function containerRowFingerprint(
|
|||
failed: c.failed,
|
||||
paused: c.paused,
|
||||
needs_login: c.needs_login,
|
||||
needs_update: c.needs_update,
|
||||
active_model: c.active_model,
|
||||
port: c.port,
|
||||
pending,
|
||||
|
|
@ -545,19 +544,6 @@ function buildContainerLi(c, opts) {
|
|||
),
|
||||
);
|
||||
}
|
||||
if (c.needs_update) {
|
||||
head.append(
|
||||
form(
|
||||
"/api/rebuild/" + c.name,
|
||||
"hive-pill-sm badge-warn btn-inline",
|
||||
"needs update ↻",
|
||||
"rebuild " + c.name + "? hot-reloads the container.",
|
||||
{},
|
||||
{ noRefresh: true },
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
if (c.active_model) {
|
||||
head.append(
|
||||
el(
|
||||
|
|
@ -579,7 +565,7 @@ function buildContainerLi(c, opts) {
|
|||
// chip in the head row stays — it's a state-hint, not an
|
||||
// action button.
|
||||
|
||||
li.append(icon, body, buildAgentMenu(c, forgeBase));
|
||||
li.append(icon, body, buildAgentMenu(c));
|
||||
return li;
|
||||
}
|
||||
|
||||
|
|
@ -601,7 +587,6 @@ export function renderContainers(s) {
|
|||
// tree builder handles the ordering — we don't pre-sort here.
|
||||
const containers = Array.from(containersState.values());
|
||||
const portConflicts = derivePortConflicts(containers);
|
||||
const anyStale = containers.some((c) => c.needs_update);
|
||||
|
||||
// Preserve the keyed container list across the header-section
|
||||
// rebuild. We wipe the banners/buttons above the list on every
|
||||
|
|
@ -627,19 +612,6 @@ export function renderContainers(s) {
|
|||
root.append(banner);
|
||||
}
|
||||
|
||||
if (anyStale) {
|
||||
root.append(
|
||||
form(
|
||||
"/api/update-all",
|
||||
"btn-rebuild",
|
||||
"↻ UPD4TE 4LL",
|
||||
"rebuild every stale container?",
|
||||
{},
|
||||
{ noRefresh: true },
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
// Queue-summary banner: see initJobqRollup, above.
|
||||
|
||||
if (!containers.length && !transientsState.size) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue