mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 17:59:28 +08:00
@@ -174,17 +174,11 @@ export default function SystemsTable() {
|
|||||||
invertSorting: false,
|
invertSorting: false,
|
||||||
Icon: ServerIcon,
|
Icon: ServerIcon,
|
||||||
cell: (info) => (
|
cell: (info) => (
|
||||||
<span className="flex gap-0.5 items-center text-base md:ps-1 md:pe-5">
|
<span className="flex gap-2 items-center md:ps-1 md:pe-5">
|
||||||
<IndicatorDot system={info.row.original} />
|
<IndicatorDot system={info.row.original} />
|
||||||
<Button
|
<span className="font-medium text-sm">
|
||||||
data-nolink
|
|
||||||
variant={"ghost"}
|
|
||||||
className="text-primary/90 h-7 px-1.5 gap-1.5"
|
|
||||||
onClick={() => copyToClipboard(info.getValue() as string)}
|
|
||||||
>
|
|
||||||
{info.getValue() as string}
|
{info.getValue() as string}
|
||||||
<CopyIcon className="size-2.5" />
|
</span>
|
||||||
</Button>
|
|
||||||
</span>
|
</span>
|
||||||
),
|
),
|
||||||
header: sortableHeader,
|
header: sortableHeader,
|
||||||
@@ -721,6 +715,10 @@ const ActionsButton = memo(({ system }: { system: SystemRecord }) => {
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem onClick={() => copyToClipboard(name)}>
|
||||||
|
<CopyIcon className="me-2.5 size-4" />
|
||||||
|
<Trans>Copy name</Trans>
|
||||||
|
</DropdownMenuItem>
|
||||||
<DropdownMenuItem onClick={() => copyToClipboard(host)}>
|
<DropdownMenuItem onClick={() => copyToClipboard(host)}>
|
||||||
<CopyIcon className="me-2.5 size-4" />
|
<CopyIcon className="me-2.5 size-4" />
|
||||||
<Trans>Copy host</Trans>
|
<Trans>Copy host</Trans>
|
||||||
|
Reference in New Issue
Block a user