fix(configs): correct 'external' display in tables [EE-6649]

pull/11110/head
testa113 2024-02-13 11:56:37 +13:00
parent 901549e8dd
commit bdfaeca59a
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}>