Show a - on the resource column when no resource is found

This commit is contained in:
Owen
2026-08-18 11:29:37 -04:00
parent a296460124
commit 87ff7650a1
3 changed files with 23 additions and 15 deletions
@@ -357,6 +357,11 @@ export default function GeneralPage() {
);
},
cell: ({ row }) => {
if (!row.original.resourceNiceId) {
return (
<span className="text-xs text-muted-foreground">-</span>
);
}
return (
<Link
href={
@@ -338,25 +338,23 @@ export default function ConnectionLogsPage() {
);
},
cell: ({ row }) => {
if (row.original.resourceName && row.original.resourceNiceId) {
if (!row.original.resourceNiceId) {
return (
<Link
href={getPrivateResourceSettingsHref(
row.original.orgId,
row.original.resourceNiceId
)}
>
<Button variant="outline" size="sm">
{row.original.resourceName}
<ArrowUpRight className="ml-2 h-3 w-3" />
</Button>
</Link>
<span className="text-xs text-muted-foreground">-</span>
);
}
return (
<span className="whitespace-nowrap">
{row.original.resourceName ?? "-"}
</span>
<Link
href={getPrivateResourceSettingsHref(
row.original.orgId,
row.original.resourceNiceId
)}
>
<Button variant="outline" size="sm">
{row.original.resourceName}
<ArrowUpRight className="ml-2 h-3 w-3" />
</Button>
</Link>
);
}
},
@@ -411,6 +411,11 @@ export default function GeneralPage() {
);
},
cell: ({ row }) => {
if (!row.original.resourceNiceId) {
return (
<span className="text-xs text-muted-foreground">-</span>
);
}
return (
<Link
href={