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:
parent
ddaf9dc885
commit
2552eb5e25
5 changed files with 163 additions and 133 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue