fix(kube/setup): toggle section on click [EE-4799] ()

pull/9115/head
Chaim Lev-Ari 2023-06-22 21:10:04 +07:00 committed by GitHub
parent 58651810bd
commit 2018529add
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions
app/kubernetes/views/configure

View File

@ -56,7 +56,7 @@
id="foldingButtonIngControllerSettings"
type="button"
class="mx-2 !ml-0 inline-flex w-2 items-center justify-center border-0 bg-transparent"
ng-click="ctrl.toggleAdvancedIngSettings()"
ng-click="ctrl.toggleAdvancedIngSettings($event)"
>
<pr-icon ng-if="!ctrl.state.isIngToggleSectionExpanded" icon="'chevron-right'"></pr-icon>
<pr-icon ng-if="ctrl.state.isIngToggleSectionExpanded" icon="'chevron-down'"></pr-icon>

View File

@ -85,7 +85,9 @@ class KubernetesConfigureController {
return _.find(this.formValues.IngressClasses, { Type: this.IngressClassTypes.TRAEFIK });
}
toggleAdvancedIngSettings() {
toggleAdvancedIngSettings($event) {
$event.stopPropagation();
$event.preventDefault();
this.$scope.$evalAsync(() => {
this.state.isIngToggleSectionExpanded = !this.state.isIngToggleSectionExpanded;
});