mirror of https://github.com/portainer/portainer
				
				
				
			fix(configs): correct 'external' display in tables [EE-6649] (#11110)
Co-authored-by: testa113 <testa113>pull/11176/head
							parent
							
								
									56ae19c5ab
								
							
						
					
					
						commit
						2d25bf4afa
					
				| 
						 | 
				
			
			@ -40,10 +40,10 @@ function Cell({ row }: CellContext<ConfigMapRowData, string>) {
 | 
			
		|||
  const isSystemToken = name?.includes('default-token-');
 | 
			
		||||
  const isSystemConfigMap = isSystemToken || row.original.isSystem;
 | 
			
		||||
 | 
			
		||||
  const hasConfigurationOwner =
 | 
			
		||||
    !!row.original.metadata?.labels?.[
 | 
			
		||||
      'io.portainer.kubernetes.configuration.owner'
 | 
			
		||||
    ];
 | 
			
		||||
  const hasConfigurationOwner = !!(
 | 
			
		||||
    row.original.metadata?.labels?.[configurationOwnerUsernameLabel] ||
 | 
			
		||||
    row.original.metadata?.labels?.[appOwnerLabel]
 | 
			
		||||
  );
 | 
			
		||||
 | 
			
		||||
  return (
 | 
			
		||||
    <Authorized authorizations="K8sConfigMapsR" childrenUnauthorized={name}>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -41,10 +41,10 @@ function Cell({ row }: CellContext<SecretRowData, string>) {
 | 
			
		|||
  const isSystemToken = name?.includes('default-token-');
 | 
			
		||||
  const isSystemSecret = isSystemToken || row.original.isSystem;
 | 
			
		||||
 | 
			
		||||
  const hasConfigurationOwner =
 | 
			
		||||
    !!row.original.metadata?.labels?.[
 | 
			
		||||
      'io.portainer.kubernetes.configuration.owner'
 | 
			
		||||
    ];
 | 
			
		||||
  const hasConfigurationOwner = !!(
 | 
			
		||||
    row.original.metadata?.labels?.[configurationOwnerUsernameLabel] ||
 | 
			
		||||
    row.original.metadata?.labels?.[appOwnerLabel]
 | 
			
		||||
  );
 | 
			
		||||
 | 
			
		||||
  return (
 | 
			
		||||
    <Authorized authorizations="K8sSecretsR" childrenUnauthorized={name}>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue