@@ -34,14 +34,20 @@ export function useCatalog(client: v1.DockerDesktopClient) {
34
34
const enrichCatalogItem = ( item : CatalogItemWithName ) : CatalogItemRichened => {
35
35
const secretsWithAssignment = Secrets . getSecretsWithAssignment ( item , secrets || [ ] ) ;
36
36
const itemConfigValue = config ?. [ item . name ] || { } ;
37
- const unConfigured = Boolean ( item . config && Object . keys ( itemConfigValue ) . length === 0 ) ;
37
+ const neverOnceConfigured = Boolean ( item . config && Object . keys ( itemConfigValue ) . length === 0 ) ;
38
+ const configTemplate = getTemplateForItem ( item , itemConfigValue ) ;
39
+ const baseConfigTemplate = getTemplateForItem ( item , { } ) ;
40
+ const unConfigured = neverOnceConfigured || JSON . stringify ( itemConfigValue ) === JSON . stringify ( baseConfigTemplate ) ;
41
+ if ( item . name === 'atlassian' ) {
42
+ console . log ( 'atlassian' , itemConfigValue , configTemplate , unConfigured )
43
+ }
38
44
const missingASecret = secretsWithAssignment . some ( ( secret ) => ! secret . assigned ) ;
39
45
const enrichedItem : CatalogItemRichened = {
40
46
...item ,
41
47
secrets : secretsWithAssignment ,
42
48
configValue : itemConfigValue ,
43
49
configSchema : item . config ,
44
- configTemplate : getTemplateForItem ( item , itemConfigValue ) ,
50
+ configTemplate,
45
51
missingConfig : unConfigured ,
46
52
missingSecrets : missingASecret ,
47
53
registered : ! ! registryItems ?. [ item . name ] ,
0 commit comments