1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 23:09:41 +02:00

feat(kube): create namespace from form view [EE-3479] (#7260)

Restyle create namespace from form view
This commit is contained in:
Matt Hook 2022-08-01 16:45:28 +12:00 committed by GitHub
parent ddaf9dc885
commit 2552eb5e25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 163 additions and 133 deletions

View file

@ -38,6 +38,7 @@ class KubernetesCreateResourcePoolController {
this.onToggleStorageQuota = this.onToggleStorageQuota.bind(this);
this.onToggleLoadBalancerQuota = this.onToggleLoadBalancerQuota.bind(this);
this.onToggleResourceQuota = this.onToggleResourceQuota.bind(this);
}
/* #endregion */
@ -53,6 +54,12 @@ class KubernetesCreateResourcePoolController {
});
}
onToggleResourceQuota(enabled) {
this.$scope.$evalAsync(() => {
this.formValues.HasQuota = enabled;
});
}
onChangeIngressHostname() {
const state = this.state.duplicates.ingressHosts;
const hosts = _.flatMap(this.formValues.IngressClasses, 'Hosts');