File tree Expand file tree Collapse file tree 1 file changed +21
-19
lines changed
src/components/ResourceBrowser/ResourceList Expand file tree Collapse file tree 1 file changed +21
-19
lines changed Original file line number Diff line number Diff line change @@ -116,25 +116,27 @@ const ClusterSelector: React.FC<ClusterSelectorType> = ({
116
116
117
117
{ defaultOption ?. isProd && < span className = "px-6 py-2 br-4 bcb-1 cb-7 fs-12 lh-16 fw-5" > Production</ span > }
118
118
119
- < PopupMenu autoClose >
120
- < PopupMenu . Button rootClassName = "flex ml-auto p-4 border__secondary" isKebab >
121
- < MenuDots className = "icon-dim-16 fcn-7" data-testid = "popup-menu-button" />
122
- </ PopupMenu . Button >
123
-
124
- < PopupMenu . Body rootClassName = "dc__border p-4" >
125
- < div className = "w-150 flexbox-col" >
126
- < button
127
- type = "button"
128
- className = "dc__outline-none flexbox dc__gap-8 dc__transparent dc__hover-n50 px-12 py-6 dc__align-items-center"
129
- onClick = { handleOpenDeleteModal }
130
- data-testid = "delete_cluster_button"
131
- >
132
- < Icon name = "ic-delete" color = "R500" />
133
- < span className = "fs-14 lh-1-5 cr-5" > Delete</ span >
134
- </ button >
135
- </ div >
136
- </ PopupMenu . Body >
137
- </ PopupMenu >
119
+ { defaultOption ?. value !== String ( DEFAULT_CLUSTER_ID ) && (
120
+ < PopupMenu autoClose >
121
+ < PopupMenu . Button rootClassName = "flex ml-auto p-4 border__secondary" isKebab >
122
+ < MenuDots className = "icon-dim-16 fcn-7" data-testid = "popup-menu-button" />
123
+ </ PopupMenu . Button >
124
+
125
+ < PopupMenu . Body rootClassName = "dc__border p-4" >
126
+ < div className = "w-150 flexbox-col" >
127
+ < button
128
+ type = "button"
129
+ className = "dc__outline-none flexbox dc__gap-8 dc__transparent dc__hover-n50 px-12 py-6 dc__align-items-center"
130
+ onClick = { handleOpenDeleteModal }
131
+ data-testid = "delete_cluster_button"
132
+ >
133
+ < Icon name = "ic-delete" color = "R500" />
134
+ < span className = "fs-14 lh-1-5 cr-5" > Delete</ span >
135
+ </ button >
136
+ </ div >
137
+ </ PopupMenu . Body >
138
+ </ PopupMenu >
139
+ ) }
138
140
139
141
{ openDeleteClusterModal && (
140
142
< DeleteClusterConfirmationModal
You can’t perform that action at this time.
0 commit comments