1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 08:19:40 +02:00

fix(cluster): make angular refresh env [EE-5524] (#10315)

Co-authored-by: testa113 <testa113>
This commit is contained in:
Ali 2023-09-20 09:33:43 +02:00 committed by GitHub
parent 25d5e62f5c
commit c18504d6f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 11 deletions

View file

@ -26,6 +26,7 @@ class KubernetesCreateResourcePoolController {
});
this.IngressClassTypes = KubernetesIngressClassTypes;
this.EndpointService = EndpointService;
this.LBQuotaFeatureId = FeatureId.K8S_RESOURCE_POOL_LB_QUOTA;
this.onToggleStorageQuota = this.onToggleStorageQuota.bind(this);
@ -175,7 +176,7 @@ class KubernetesCreateResourcePoolController {
$onInit() {
return this.$async(async () => {
try {
const endpoint = this.endpoint;
const endpoint = await this.EndpointService.endpoint(this.endpoint.Id);
this.defaults = KubernetesResourceQuotaDefaults;
this.formValues = new KubernetesResourcePoolFormValues(this.defaults);
this.formValues.EndpointId = this.endpoint.Id;