mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 14:59:41 +02:00
fix(app): update sliders when limits are known [EE-5933] (#10768)
Co-authored-by: testa113 <testa113>
This commit is contained in:
parent
dabcf4f7db
commit
a2d6d6002c
1 changed files with 6 additions and 4 deletions
|
@ -1120,10 +1120,10 @@ class KubernetesCreateApplicationController {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (this.resourcePools.length) {
|
if (this.resourcePools.length) {
|
||||||
const namespaceWithQuota = await this.KubernetesResourcePoolService.get(this.resourcePools[0].Namespace.Name);
|
this.namespaceWithQuota = await this.KubernetesResourcePoolService.get(this.resourcePools[0].Namespace.Name);
|
||||||
this.formValues.ResourcePool.Quota = namespaceWithQuota.Quota;
|
this.formValues.ResourcePool.Quota = this.namespaceWithQuota.Quota;
|
||||||
this.updateNamespaceLimits(namespaceWithQuota);
|
this.updateNamespaceLimits(this.namespaceWithQuota);
|
||||||
this.updateSliders(namespaceWithQuota);
|
this.updateSliders(this.namespaceWithQuota);
|
||||||
}
|
}
|
||||||
this.formValues.ResourcePool = this.resourcePools[0];
|
this.formValues.ResourcePool = this.resourcePools[0];
|
||||||
if (!this.formValues.ResourcePool) {
|
if (!this.formValues.ResourcePool) {
|
||||||
|
@ -1168,6 +1168,8 @@ class KubernetesCreateApplicationController {
|
||||||
this.formValues.OriginalIngresses = this.ingresses;
|
this.formValues.OriginalIngresses = this.ingresses;
|
||||||
this.formValues.ImageModel = await this.parseImageConfiguration(this.formValues.ImageModel);
|
this.formValues.ImageModel = await this.parseImageConfiguration(this.formValues.ImageModel);
|
||||||
this.savedFormValues = angular.copy(this.formValues);
|
this.savedFormValues = angular.copy(this.formValues);
|
||||||
|
this.updateNamespaceLimits(this.namespaceWithQuota);
|
||||||
|
this.updateSliders(this.namespaceWithQuota);
|
||||||
delete this.formValues.ApplicationType;
|
delete this.formValues.ApplicationType;
|
||||||
|
|
||||||
if (this.application.ApplicationType !== KubernetesApplicationTypes.STATEFULSET) {
|
if (this.application.ApplicationType !== KubernetesApplicationTypes.STATEFULSET) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue