File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
dashboard/src/pages/Deployment Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ export default function DeploymentOverview() {
37
37
const highlightTheme = themeType === 'dark' ? dark : docco
38
38
const portForwardCommand = `kubectl port-forward -n ${ kubeNamespace } svc/${ deploymentName } 8080:3000`
39
39
const [ copyNotification , setCopyNotification ] = useState < string > ( )
40
+ const shouldShowAccessButton =
41
+ deployment ?. status !== 'terminated' && ( ! deployment ?. urls || deployment . urls . length === 0 )
40
42
41
43
return (
42
44
< div >
@@ -51,7 +53,7 @@ export default function DeploymentOverview() {
51
53
gap : 10 ,
52
54
} }
53
55
>
54
- { ( ! deployment ?. urls || deployment . urls . length === 0 ) && (
56
+ { shouldShowAccessButton && (
55
57
< Button
56
58
size = 'mini'
57
59
startEnhancer = { < MdOutlineAccessibilityNew /> }
You can’t perform that action at this time.
0 commit comments