@@ -34,14 +34,20 @@ export function useCatalog(client: v1.DockerDesktopClient) {
3434 const enrichCatalogItem = ( item : CatalogItemWithName ) : CatalogItemRichened => {
3535 const secretsWithAssignment = Secrets . getSecretsWithAssignment ( item , secrets || [ ] ) ;
3636 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+ }
3844 const missingASecret = secretsWithAssignment . some ( ( secret ) => ! secret . assigned ) ;
3945 const enrichedItem : CatalogItemRichened = {
4046 ...item ,
4147 secrets : secretsWithAssignment ,
4248 configValue : itemConfigValue ,
4349 configSchema : item . config ,
44- configTemplate : getTemplateForItem ( item , itemConfigValue ) ,
50+ configTemplate,
4551 missingConfig : unConfigured ,
4652 missingSecrets : missingASecret ,
4753 registered : ! ! registryItems ?. [ item . name ] ,
0 commit comments