We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a02b1b5 commit 1ea7298Copy full SHA for 1ea7298
src/components/ClusterNodes/ClusterTerminal.tsx
@@ -88,7 +88,11 @@ const ClusterTerminal = ({
88
}: ClusterTerminalType) => {
89
const { replace } = useHistory()
90
const location = useLocation()
91
- const isAdminTerminalVisible = location.pathname.includes('terminal')
+ const isAdminTerminalVisible =
92
+ location.pathname ===
93
+ generatePath(RESOURCE_BROWSER_ROUTES.TERMINAL, {
94
+ clusterId,
95
+ })
96
const queryParams = new URLSearchParams(location.search)
97
const terminalAccessIdRef = useRef()
98
const clusterShellTypes = shellTypes.filter((types) => types.label === 'sh' || types.label === 'bash')
0 commit comments