bfg-common 1.2.47 → 1.2.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +5 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +1 -0
- package/package.json +1 -1
package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue
CHANGED
|
@@ -187,6 +187,7 @@ const props = defineProps<{
|
|
|
187
187
|
maxCpus: number
|
|
188
188
|
maxMemory: number
|
|
189
189
|
isEdit: boolean
|
|
190
|
+
isClone: boolean
|
|
190
191
|
errorValidationFields: UI_I_ErrorValidationField<string>[]
|
|
191
192
|
nodes: UI_I_FileTreeNode[]
|
|
192
193
|
files: UI_I_FileTreeNode[]
|
|
@@ -237,7 +238,7 @@ const hardDisks = ref<UI_I_SendDataNewHardDisk[]>([
|
|
|
237
238
|
watch(
|
|
238
239
|
() => props.hardDisks,
|
|
239
240
|
(newValue) => {
|
|
240
|
-
if (!props.isEdit || !newValue) return
|
|
241
|
+
if (!props.isEdit && !props.isClone || !newValue) return
|
|
241
242
|
|
|
242
243
|
const count = newValue?.length || 0
|
|
243
244
|
hardDisksIndex.value = [...Array(count).keys()]
|
|
@@ -319,7 +320,7 @@ const networksIndex = ref<number[]>([0])
|
|
|
319
320
|
watch(
|
|
320
321
|
() => props.networks,
|
|
321
322
|
(newValue) => {
|
|
322
|
-
if (!props.isEdit || !newValue) return
|
|
323
|
+
if (!props.isEdit && !props.isClone || !newValue) return
|
|
323
324
|
|
|
324
325
|
// networks.value = newValue
|
|
325
326
|
// networksType.value = Array(newValue.length).fill('edit')
|
|
@@ -371,7 +372,7 @@ const cdDvdDrivesType = ref<UI_T_CdDvdType[]>(['new'])
|
|
|
371
372
|
watch(
|
|
372
373
|
() => props.cdDvdDrives,
|
|
373
374
|
(newValue) => {
|
|
374
|
-
if (!props.isEdit || !newValue) return
|
|
375
|
+
if (!props.isEdit && !props.isClone || !newValue) return
|
|
375
376
|
|
|
376
377
|
// cdDvdDrives.value = newValue
|
|
377
378
|
// cdDvdDrivesType.value = Array(newValue.length).fill('edit')
|
|
@@ -441,7 +442,7 @@ const pciDevices = ref<UI_I_PciDevice[]>([])
|
|
|
441
442
|
watch(
|
|
442
443
|
() => props.pciDevices,
|
|
443
444
|
(newValue) => {
|
|
444
|
-
if (!props.isEdit) return
|
|
445
|
+
if (!props.isEdit && !props.isClone) return
|
|
445
446
|
|
|
446
447
|
const count = newValue?.length || 0
|
|
447
448
|
pciDevicesIndex.value = [...Array(count).keys()]
|
|
@@ -267,6 +267,7 @@ const hardDiskTypeOptions = ref<UI_I_OptionItem[]>(
|
|
|
267
267
|
binaryOptionsFunc(localization.value)
|
|
268
268
|
)
|
|
269
269
|
|
|
270
|
+
console.log(props.hardDisk.size, 111);
|
|
270
271
|
const size = ref<number>(props.hardDisk.size) // Изначально всегда приходит в gb
|
|
271
272
|
const sizeInMb = computed<number>(() => {
|
|
272
273
|
if (hardDiskType.value === 'mb') {
|