File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
src/extension/ui/src/components/tile Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
10
10
Badge ,
11
11
Box ,
12
12
ButtonGroup ,
13
+ Chip ,
13
14
CircularProgress ,
14
15
Dialog ,
15
16
DialogContent ,
@@ -94,6 +95,12 @@ const ConfigurationModal = ({
94
95
) ;
95
96
} , [ catalogItem . secrets ] ) ;
96
97
98
+ useEffect ( ( ) => {
99
+ if ( ! catalogItem . canRegister ) {
100
+ setTabValue ( 1 ) ;
101
+ }
102
+ } , [ catalogItem . canRegister ] ) ;
103
+
97
104
const toolChipStyle = {
98
105
padding : '2px 8px' ,
99
106
justifyContent : 'center' ,
@@ -156,7 +163,6 @@ const ConfigurationModal = ({
156
163
} }
157
164
/>
158
165
{ formatName ( catalogItem . name ) }
159
-
160
166
< Tooltip
161
167
placement = "right"
162
168
title = {
@@ -177,6 +183,12 @@ const ConfigurationModal = ({
177
183
/>
178
184
</ span >
179
185
</ Tooltip >
186
+ { catalogItem . missingSecrets && (
187
+ < Chip label = "Requires secrets" color = "warning" />
188
+ ) }
189
+ { catalogItem . missingConfig && (
190
+ < Chip label = "Requires configuration" color = "warning" />
191
+ ) }
180
192
</ Stack >
181
193
</ DialogTitle >
182
194
< IconButton
@@ -289,7 +301,7 @@ const ConfigurationModal = ({
289
301
const secretEdited =
290
302
( secret . assigned &&
291
303
localSecrets [ secret . name ] !==
292
- ASSIGNED_SECRET_PLACEHOLDER ) ||
304
+ ASSIGNED_SECRET_PLACEHOLDER ) ||
293
305
( ! secret . assigned &&
294
306
localSecrets [ secret . name ] !== '' ) ;
295
307
return (
You can’t perform that action at this time.
0 commit comments