Compare commits

...

1 Commits

Author SHA1 Message Date
testa113
effba7fecf fix(configs): correct 'external' display in tables [EE-6649] 2024-02-13 11:58:19 +13:00
2 changed files with 8 additions and 8 deletions

View File

@@ -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}>

View File

@@ -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}>