Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 16 additions & 13 deletions www/src/components/overview/clusters/all/AllClustersTableCols.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,19 +115,22 @@ const ColActions = columnHelper.accessor((instance) => instance, {
const instance = getValue()

return (
<Flex gap="small">
<Button
secondary
small
startIcon={<ConsoleIcon color={theme.colors['icon-default']} />}
as={Link}
to={sanitizeConsoleUrl(instance.consoleUrl)}
target="_blank"
rel="noopener noreferrer"
onClick={(e) => e.stopPropagation()}
>
Go to Console
</Button>
<Flex gap="small" justify="flex-end" width="100%">
{(instance.type === CombinedClusterType.SelfHosted ||
instance.status === ConsoleInstanceStatus.Provisioned) && (
<Button
secondary
small
startIcon={<ConsoleIcon />}
as={Link}
to={sanitizeConsoleUrl(instance.consoleUrl)}
target="_blank"
rel="noopener noreferrer"
onClick={(e) => e.stopPropagation()}
>
Go to Console
</Button>
)}
<IconFrame
clickable
tooltip="View instance details"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,19 +167,21 @@ const ColActions = columnHelper.accessor((instance) => instance, {
const instance = getValue()

return (
<Flex gap="small">
<Button
secondary
small
startIcon={<ConsoleIcon color={theme.colors['icon-default']} />}
as={Link}
to={sanitizeConsoleUrl(instance.url)}
target="_blank"
rel="noopener noreferrer"
onClick={(e) => e.stopPropagation()}
>
Go to Console
</Button>
<Flex gap="small" justify="flex-end" width="100%">
{instance.status === ConsoleInstanceStatus.Provisioned && (
<Button
secondary
small
startIcon={<ConsoleIcon />}
as={Link}
to={sanitizeConsoleUrl(instance.url)}
target="_blank"
rel="noopener noreferrer"
onClick={(e) => e.stopPropagation()}
>
Go to Console
</Button>
)}
<IconFrame
clickable
tooltip="View instance details"
Expand Down
Loading