Skip to content

Commit c31db06

Browse files
fix(pci-instances): hide tooltip for vnc tab when disabled
Signed-off-by: tsiorifamonjena <[email protected]>
1 parent 017bea6 commit c31db06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/manager/apps/pci-instances/src/pages/instances/instance/Instance.page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ const Instance: FC = () => {
4242
label: t('dashboard:pci_instances_dashboard_tab_vnc_title'),
4343
to: vncPath.pathname,
4444
disabled: !instance?.isVncEnabled,
45-
tooltipText: t(
46-
'dashboard:pci_instances_dashboard_tab_vnc_disabled_text',
47-
),
45+
tooltipText: !instance?.isVncEnabled
46+
? t('dashboard:pci_instances_dashboard_tab_vnc_disabled_text')
47+
: null,
4848
},
4949
],
5050
[dashboardPath.pathname, vncPath.pathname, t, instance?.isVncEnabled],

0 commit comments

Comments
 (0)