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
|
|
@ -72,7 +72,7 @@ class HiveAgentMenu extends HTMLElement {
|
|||
// first, doubling the dropdown.
|
||||
if (this._menu) return;
|
||||
|
||||
const { c, forgeBase } = this._opts || {};
|
||||
const { c } = this._opts || {};
|
||||
|
||||
const btn = el(
|
||||
"button",
|
||||
|
|
@ -206,24 +206,6 @@ class HiveAgentMenu extends HTMLElement {
|
|||
}),
|
||||
);
|
||||
|
||||
if (c.deployed_sha && forgeBase) {
|
||||
const li = el("li", { role: "presentation" });
|
||||
const a = el(
|
||||
"a",
|
||||
{
|
||||
class: "agent-menu-item",
|
||||
href: `${forgeBase}/agent-configs/${encodeURIComponent(c.name)}/commit/${c.deployed_sha}`,
|
||||
target: "_blank",
|
||||
rel: "noopener",
|
||||
role: "menuitem",
|
||||
title: "deployed config commit on forge",
|
||||
},
|
||||
`deployed:${c.deployed_sha} ↗`,
|
||||
);
|
||||
li.append(a);
|
||||
dropdown.append(menuSep(), li);
|
||||
}
|
||||
|
||||
this._menu = document.createElement("hive-menu");
|
||||
this._menu._opts = { trigger: btn, content: dropdown };
|
||||
this.append(this._menu);
|
||||
|
|
|
|||
Loading…
Reference in a new issue