1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-03 12:55:23 +02:00

fix(app): update sliders when limits are known [EE-5933] (#10769) (#10801)

This commit is contained in:
Ali 2023-12-08 12:57:07 +13:00 committed by GitHub
parent 0e59cf76ec
commit d090b0043a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1114,10 +1114,10 @@ class KubernetesCreateApplicationController {
});
if (this.resourcePools.length) {
const namespaceWithQuota = await this.KubernetesResourcePoolService.get(this.resourcePools[0].Namespace.Name);
this.formValues.ResourcePool.Quota = namespaceWithQuota.Quota;
this.updateNamespaceLimits(namespaceWithQuota);
this.updateSliders(namespaceWithQuota);
this.namespaceWithQuota = await this.KubernetesResourcePoolService.get(this.resourcePools[0].Namespace.Name);
this.formValues.ResourcePool.Quota = this.namespaceWithQuota.Quota;
this.updateNamespaceLimits(this.namespaceWithQuota);
this.updateSliders(this.namespaceWithQuota);
}
this.formValues.ResourcePool = this.resourcePools[0];
if (!this.formValues.ResourcePool) {
@ -1162,6 +1162,8 @@ class KubernetesCreateApplicationController {
this.formValues.OriginalIngresses = this.ingresses;
this.formValues.ImageModel = await this.parseImageConfiguration(this.formValues.ImageModel);
this.savedFormValues = angular.copy(this.formValues);
this.updateNamespaceLimits(this.namespaceWithQuota);
this.updateSliders(this.namespaceWithQuota);
delete this.formValues.ApplicationType;
if (this.application.ApplicationType !== KubernetesApplicationTypes.STATEFULSET) {