1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00

fix(app): fix exhaused error message [EE-6231] (#10949)

Co-authored-by: testa113 <testa113>
This commit is contained in:
Ali 2024-01-15 11:03:38 +13:00 committed by GitHub
parent cb7efd8601
commit d750389c67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View file

@ -4,7 +4,7 @@ type ValidationData = {
hasQuota: boolean;
isResourceQuotaCapacityExceeded: boolean;
namespaceOptionCount: number;
isAdmin: boolean;
isEnvironmentAdmin: boolean;
};
const emptyValue =
@ -17,7 +17,7 @@ export function namespaceSelectorValidation(
hasQuota,
isResourceQuotaCapacityExceeded,
namespaceOptionCount,
isAdmin,
isEnvironmentAdmin,
} = validationData || {};
return string()
.required(emptyValue)
@ -25,7 +25,7 @@ export function namespaceSelectorValidation(
.test(
'resourceQuotaCapacityExceeded',
`This namespace has exhausted its resource capacity and you will not be able to deploy the application.${
isAdmin
isEnvironmentAdmin
? ''
: ' Contact your administrator to expand the capacity of the namespace.'
}`,