mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-19 10:42:57 +02:00
Show a - on the resource column when no resource is found
This commit is contained in:
@@ -357,6 +357,11 @@ export default function GeneralPage() {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
cell: ({ row }) => {
|
cell: ({ row }) => {
|
||||||
|
if (!row.original.resourceNiceId) {
|
||||||
|
return (
|
||||||
|
<span className="text-xs text-muted-foreground">-</span>
|
||||||
|
);
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
href={
|
href={
|
||||||
|
|||||||
@@ -338,25 +338,23 @@ export default function ConnectionLogsPage() {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
cell: ({ row }) => {
|
cell: ({ row }) => {
|
||||||
if (row.original.resourceName && row.original.resourceNiceId) {
|
if (!row.original.resourceNiceId) {
|
||||||
return (
|
return (
|
||||||
<Link
|
<span className="text-xs text-muted-foreground">-</span>
|
||||||
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>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<span className="whitespace-nowrap">
|
<Link
|
||||||
{row.original.resourceName ?? "-"}
|
href={getPrivateResourceSettingsHref(
|
||||||
</span>
|
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 }) => {
|
cell: ({ row }) => {
|
||||||
|
if (!row.original.resourceNiceId) {
|
||||||
|
return (
|
||||||
|
<span className="text-xs text-muted-foreground">-</span>
|
||||||
|
);
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
href={
|
href={
|
||||||
|
|||||||
Reference in New Issue
Block a user