File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 156156 <div v-if =" template.deployasis" > {{ this.$t('message.deployasis') }} </div >
157157 </span >
158158 <disk-size-selection
159- v-show =" showRootDiskSizeChanger"
159+ v-if =" showRootDiskSizeChanger"
160160 input-decorator =" rootdisksize"
161161 :preFillContent =" dataPreFill"
162162 :isCustomized =" true"
@@ -1723,11 +1723,12 @@ export default {
17231723 deployVmData .templateid = values .isoid
17241724 }
17251725
1726- if (values .rootdisksize && values .rootdisksize > 0 ) {
1726+ if (this . showRootDiskSizeChanger && values .rootdisksize && values .rootdisksize > 0 ) {
17271727 deployVmData .rootdisksize = values .rootdisksize
1728- } else if (this .rootDiskSizeFixed > 0 ) {
1728+ } else if (this .rootDiskSizeFixed > 0 && ! this . template . deployasis ) {
17291729 deployVmData .rootdisksize = this .rootDiskSizeFixed
17301730 }
1731+
17311732 if (values .hypervisor && values .hypervisor .length > 0 ) {
17321733 deployVmData .hypervisor = values .hypervisor
17331734 }
You can’t perform that action at this time.
0 commit comments