swarm-ui: link a gitlab account to an agent
This commit is contained in:
parent
b7d8c0dfc0
commit
3e5b5b54a2
1 changed files with 240 additions and 56 deletions
|
|
@ -8,11 +8,12 @@ import { Badge } from "@hive/shared/badge.js";
|
|||
import { Dropdown, type DropdownOption } from "@hive/shared/dropdown.js";
|
||||
import { LinkIcon } from "@hive/shared/icons.js";
|
||||
|
||||
export type LinkKind = "matrix" | "forge" | "github" | "backend";
|
||||
export type LinkKind = "matrix" | "forge" | "gitlab" | "github" | "backend";
|
||||
|
||||
const OPTIONS: DropdownOption[] = [
|
||||
{ value: "matrix", label: "matrix account" },
|
||||
{ value: "forge", label: "forge account" },
|
||||
{ value: "gitlab", label: "gitlab account" },
|
||||
{ value: "github", label: "github account" },
|
||||
{ value: "backend", label: "API-key environment" },
|
||||
];
|
||||
|
|
@ -41,7 +42,7 @@ export function LinkAccountMenu({
|
|||
disabled={!hasHive}
|
||||
title={
|
||||
hasHive
|
||||
? `link a matrix, forge or github account, or set the API-key environment, for ${agent}`
|
||||
? `link a matrix, forge, gitlab or github account, or set the API-key environment, for ${agent}`
|
||||
: "no hive on record for this agent — nothing to link against"
|
||||
}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue