mirror of https://github.com/apache/cloudstack.git
ui: fix set reservation toggle in add public ip range (#6707)
Fixes 'Set reservation' toggle not getting updated on value change.
This commit is contained in:
parent
e76df16d9f
commit
1d20fcfc6e
|
|
@ -239,7 +239,7 @@
|
|||
</div>
|
||||
<div class="form__item" v-if="!basicGuestNetwork && form.iptype != 'ip6'">
|
||||
<div style="color: black;">{{ $t('label.set.reservation') }}</div>
|
||||
<a-switch @change="handleShowAccountFields" />
|
||||
<a-switch v-model:checked="showAccountFields" @change="handleShowAccountFields" />
|
||||
</div>
|
||||
<div v-if="showAccountFields && !basicGuestNetwork" style="margin-top: 20px;">
|
||||
<div v-html="$t('label.set.reservation.desc')"></div>
|
||||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue