({
- labels: false
+ labels: true
});
const t = useTranslations();
diff --git a/src/components/MachineClientsTable.tsx b/src/components/MachineClientsTable.tsx
index 793312052..d7bdba029 100644
--- a/src/components/MachineClientsTable.tsx
+++ b/src/components/MachineClientsTable.tsx
@@ -24,17 +24,12 @@ import {
ArrowUp10Icon,
ChevronsUpDownIcon,
CircleSlash,
- MoreHorizontal,
+ MoreHorizontal
} from "lucide-react";
import { useTranslations } from "next-intl";
import Link from "next/link";
import { useRouter } from "next/navigation";
-import {
- startTransition,
- useMemo,
- useState,
- useTransition
-} from "react";
+import { startTransition, useMemo, useState, useTransition } from "react";
import { useDebouncedCallback } from "use-debounce";
import z from "zod";
import { ColumnFilterButton } from "./ColumnFilterButton";
@@ -110,7 +105,7 @@ export default function MachineClientsTable({
subnet: false,
userId: false,
niceId: false,
- labels: false
+ labels: true
};
const refreshData = () => {
@@ -614,7 +609,10 @@ function MachineClientLabelCell({
}: MachineClientLabelCellProps) {
const t = useTranslations();
const api = createApiClient(useEnvContext());
- const [localLabels, setLocalLabels] = useLocalLabels(client.labels, client.id);
+ const [localLabels, setLocalLabels] = useLocalLabels(
+ client.labels,
+ client.id
+ );
function toggleClientLabel(
label: SelectedLabel,
diff --git a/src/components/PrivateResourceForm.tsx b/src/components/PrivateResourceForm.tsx
index 1b57ff910..1557c89f5 100644
--- a/src/components/PrivateResourceForm.tsx
+++ b/src/components/PrivateResourceForm.tsx
@@ -1128,9 +1128,7 @@ export function PrivateResourceForm({
/>
)}
- {(mode === "host" ||
- (mode === "ssh" &&
- sshServerMode !== "native")) && (
+ {(mode === "host" || mode === "ssh") && (
{
const resourceRow = row.original;
const display = formatDestinationDisplay(resourceRow);
- return (
-
- );
+ if (resourceRow.destination) {
+ return (
+
+ );
+ }
+ return -;
}
},
{
@@ -656,7 +659,7 @@ export default function ClientResourcesTable({
columnVisibility={{
niceId: false,
aliasAddress: false,
- labels: false
+ labels: true
}}
stickyLeftColumn="name"
stickyRightColumn="actions"
diff --git a/src/components/ProxyResourcesTable.tsx b/src/components/ProxyResourcesTable.tsx
index 9a327b602..630d58408 100644
--- a/src/components/ProxyResourcesTable.tsx
+++ b/src/components/ProxyResourcesTable.tsx
@@ -755,7 +755,7 @@ export default function ProxyResourcesTable({
columnVisibility={{
niceId: false,
protocol: false,
- labels: false
+ labels: true
}}
stickyLeftColumn="name"
stickyRightColumn="actions"
diff --git a/src/components/SitesTable.tsx b/src/components/SitesTable.tsx
index 284bf4de8..51172a9e0 100644
--- a/src/components/SitesTable.tsx
+++ b/src/components/SitesTable.tsx
@@ -36,7 +36,7 @@ import {
ArrowUpRight,
ChevronDown,
ChevronsUpDownIcon,
- MoreHorizontal,
+ MoreHorizontal
} from "lucide-react";
import { useTranslations } from "next-intl";
import Link from "next/link";
@@ -670,7 +670,7 @@ export default function SitesTable({
nice: false,
exitNode: false,
address: false,
- labels: false
+ labels: true
}}
enableColumnVisibility
stickyLeftColumn="name"