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:
parent
cb7efd8601
commit
d750389c67
3 changed files with 6 additions and 5 deletions
|
@ -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.'
|
||||
}`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue