From 1d20fcfc6e15143dbf685e60f410f02f22b3316e Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Tue, 6 Sep 2022 14:05:01 +0530 Subject: [PATCH] ui: fix set reservation toggle in add public ip range (#6707) Fixes 'Set reservation' toggle not getting updated on value change. --- ui/src/views/infra/network/IpRangesTabPublic.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ui/src/views/infra/network/IpRangesTabPublic.vue b/ui/src/views/infra/network/IpRangesTabPublic.vue index 36a5d6480a8..df78eba9935 100644 --- a/ui/src/views/infra/network/IpRangesTabPublic.vue +++ b/ui/src/views/infra/network/IpRangesTabPublic.vue @@ -239,7 +239,7 @@
{{ $t('label.set.reservation') }}
- +
@@ -555,12 +555,9 @@ export default { this.fetchDomains() }, handleShowAccountFields () { - if (this.showAccountFields === false) { - this.showAccountFields = true + if (this.showAccountFields) { this.fetchDomains() - return } - this.showAccountFields = false }, handleOpenAddIpRangeModal () { this.initAddIpRangeForm()