9
9
Avatar ,
10
10
Badge ,
11
11
Box ,
12
- ButtonGroup ,
13
12
Chip ,
14
13
CircularProgress ,
15
14
Dialog ,
@@ -31,10 +30,9 @@ import {
31
30
TextField ,
32
31
Tooltip ,
33
32
Typography ,
34
- useTheme ,
33
+ useTheme
35
34
} from '@mui/material' ;
36
35
import { useEffect , useRef , useState } from 'react' ;
37
-
38
36
import {
39
37
ASSIGNED_SECRET_PLACEHOLDER ,
40
38
getUnsupportedSecretMessage ,
@@ -250,7 +248,7 @@ const ConfigurationModal = ({
250
248
< >
251
249
< Box sx = { { borderBottom : 1 , borderColor : 'divider' , mt : 2 } } >
252
250
< Tabs value = { tabValue } onChange = { handleTabChange } >
253
- < Tab label = " Tools" />
251
+ < Tab label = { ` Tools ( ${ catalogItem ?. tools ?. length } )` } />
254
252
{ ! contributesNoConfigOrSecrets && (
255
253
< Tab
256
254
disabled = { contributesNoConfigOrSecrets }
@@ -301,8 +299,7 @@ const ConfigurationModal = ({
301
299
< Link
302
300
onClick = { ( ) =>
303
301
client . host . openExternal (
304
- `${
305
- catalogItem . readme
302
+ `${ catalogItem . readme
306
303
} #tool-${ tool . name . replaceAll ( ' ' , '-' ) } ` || ''
307
304
)
308
305
}
@@ -344,13 +341,13 @@ const ConfigurationModal = ({
344
341
</ Alert >
345
342
) }
346
343
{ ddInfo ?. hasSecretSupport &&
347
- catalogItem . secrets &&
348
- catalogItem . secrets ?. length > 0 ? (
344
+ catalogItem . secrets &&
345
+ catalogItem . secrets ?. length > 0 ? (
349
346
catalogItem . secrets . map ( ( secret , index ) => {
350
347
const secretEdited =
351
348
( secret . assigned &&
352
349
localSecrets [ secret . name ] !==
353
- ASSIGNED_SECRET_PLACEHOLDER ) ||
350
+ ASSIGNED_SECRET_PLACEHOLDER ) ||
354
351
( ! secret . assigned &&
355
352
localSecrets [ secret . name ] !== '' ) ;
356
353
return (
0 commit comments