File tree Expand file tree Collapse file tree 4 files changed +17
-23
lines changed
Expand file tree Collapse file tree 4 files changed +17
-23
lines changed Original file line number Diff line number Diff line change 5050
5151 <a-form-item :label =" $t('label.automigrate.volume')" >
5252 <tooltip-label slot =" label" :title =" $t('label.automigrate.volume')" :tooltip =" apiParams.automigrate.description" />
53- <a-checkbox
54- :checked =" autoMigrate"
53+ <a-switch
5554 v-decorator =" ['autoMigrate']"
56- @change = " handleAutoMigrateCheckChange "
57- ></ a-checkbox >
55+ :checked = " autoMigrate "
56+ @change = " val => { autoMigrate = val } " / >
5857 </a-form-item >
5958
6059 <div :span =" 24" class =" action-button" >
@@ -161,9 +160,6 @@ export default {
161160 this .selectedOffering = this .offeringsMap [id]
162161 this .params .automigrate = this .autoMigrate
163162 },
164- handleAutoMigrateCheckChange (e ) {
165- this .autoMigrate = e .target .checked
166- },
167163 updateFieldValue (name , value ) {
168164 this .params [name] = value
169165 },
Original file line number Diff line number Diff line change 9191 </span >
9292 <a-form-item :label =" $t('label.automigrate.volume')" >
9393 <tooltip-label slot =" label" :title =" $t('label.automigrate.volume')" :tooltip =" apiParams.automigrate.description" />
94- <a-checkbox
95- :checked =" autoMigrate"
94+ <a-switch
9695 v-decorator =" ['autoMigrate']"
97- @change = " handleAutoMigrateCheckChange "
98- ></ a-checkbox >
96+ :checked = " autoMigrate "
97+ @change = " val => { autoMigrate = val } " / >
9998 </a-form-item >
10099 <a-form-item :label =" $t('label.shrinkok')" >
101- <a-checkbox
102- :checked =" shrinkOk"
100+ <a-switch
103101 v-decorator =" ['shrinkOk']"
104- @change = " handleShrinkOkCheckChange "
105- ></ a-checkbox >
102+ :checked = " shrinkOk "
103+ @change = " val => { shrinkOk = val } " / >
106104 </a-form-item >
107105 <a-divider />
108106 <div class =" actions" >
@@ -220,12 +218,6 @@ export default {
220218 const offering = this .diskOfferings .filter (x => x .id === id)
221219 this .customDiskOffering = offering[0 ]? .iscustomized || false
222220 this .isCustomizedDiskIOps = offering[0 ]? .iscustomizediops || false
223- },
224- handleAutoMigrateCheckChange (e ) {
225- this .autoMigrate = e .target .checked
226- },
227- handleShrinkOkCheckChange (e ) {
228- this .shrinkOk = e .target .checked
229221 }
230222 }
231223}
Original file line number Diff line number Diff line change 3535 <p class =" modal-form__label" @click =" replaceDiskOffering = !replaceDiskOffering" style =" cursor :pointer ;" >
3636 {{ $t('label.usenewdiskoffering') }}
3737 </p >
38- <a-checkbox v-model =" replaceDiskOffering" />
38+ <a-switch
39+ v-decorator =" ['replaceDiskOffering']"
40+ :checked =" replaceDiskOffering"
41+ @change =" val => { replaceDiskOffering = val }" />
3942
4043 <template v-if =" replaceDiskOffering " >
4144 <p class =" modal-form__label" >{{ $t('label.newdiskoffering') }}</p >
Original file line number Diff line number Diff line change 3939 </a-form-item >
4040 </div >
4141 <a-form-item :label =" $t('label.shrinkok')" v-if =" !['XenServer'].includes(resource.hypervisor)" >
42- <a-checkbox v-decorator =" ['shrinkok']" />
42+ <a-switch
43+ v-decorator =" ['shrinkOk']"
44+ :checked =" shrinkOk"
45+ @change =" val => { shrinkOk = val }" />
4346 </a-form-item >
4447 <div :span =" 24" class =" action-button" >
4548 <a-button @click =" closeModal" >{{ $t('label.cancel') }}</a-button >
You can’t perform that action at this time.
0 commit comments