File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/online-shell/src/discover Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,9 @@ export const DiscoverPodConnect: React.FunctionComponent<DiscoverPodConnectProps
38
38
}
39
39
40
40
const disableContainerButton = ( ) : boolean => {
41
- return mgmtService . podStatus ( props . pod . mPod ) !== 'Running' || connectionNames . length === 0 || mgmtError !== null
41
+ return mgmtService . podStatus ( props . pod . mPod ) !== 'Running' ||
42
+ ( ! props . pod . mPod . getManagement ( ) . status . managed ) ||
43
+ connectionNames . length === 0 || mgmtError !== null
42
44
}
43
45
44
46
const onConnect = ( connectName : string ) => {
@@ -83,6 +85,7 @@ export const DiscoverPodConnect: React.FunctionComponent<DiscoverPodConnectProps
83
85
< DropdownItem
84
86
key = { `${ props . pod . uid } -container-${ index } ` }
85
87
component = 'button'
88
+ isDisabled = { disableContainerButton ( ) }
86
89
onClick = { ( ) => onConnect ( connectionName ) }
87
90
>
88
91
{ connectionName . replace ( `${ props . pod . name } -` , '' ) }
You can’t perform that action at this time.
0 commit comments