feat: view and edit server tags

This commit is contained in:
2026-08-04 13:38:42 +01:00
parent d1b3cd2f74
commit fa1fd14ed1
3 changed files with 145 additions and 2 deletions
+4
View File
@@ -8,6 +8,7 @@ import { api, ServerStatus, GenerateKeyOptions, PackageUpdate, Inventory } from
import { Badge, Button, Card, CardHeader, CardTitle } from "@/components/ui";
import { Table, Thead, Tbody, Tr, Th, Td } from "@/components/ui";
import { useLicense } from "@/lib/useLicense";
import { TagChips } from "@/components/servers/TagChips";
function statusVariant(status: ServerStatus) {
switch (status) {
@@ -397,6 +398,9 @@ export default function ServerDetailPage() {
<Badge variant={statusVariant(server.status)}>{server.status}</Badge>
</div>
<p className="mt-1 font-mono text-sm text-text-secondary">{server.ip_address}</p>
<div className="mt-2">
<TagChips serverId={server.server_id} tags={server.tags} editable />
</div>
</div>
<div className="flex flex-wrap gap-2">
{/* Rendered disabled rather than hidden when the licence does not