bfg-common 1.2.48 → 1.2.49
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/virtualHardware/VirtualHardware.vue
CHANGED
|
@@ -242,7 +242,7 @@ watch(
|
|
|
242
242
|
|
|
243
243
|
const count = newValue?.length || 0
|
|
244
244
|
hardDisksIndex.value = [...Array(count).keys()]
|
|
245
|
-
hardDisksType.value = Array(count).fill('edit')
|
|
245
|
+
hardDisksType.value = Array(count).fill(props.isEdit ? 'edit' : 'new')
|
|
246
246
|
hardDisks.value = newValue
|
|
247
247
|
},
|
|
248
248
|
{ immediate: true }
|
|
@@ -326,7 +326,7 @@ watch(
|
|
|
326
326
|
// networksType.value = Array(newValue.length).fill('edit')
|
|
327
327
|
const count = newValue?.length || 0
|
|
328
328
|
networksIndex.value = [...Array(count).keys()]
|
|
329
|
-
networksType.value = Array(count).fill('edit')
|
|
329
|
+
networksType.value = Array(count).fill(props.isEdit ? 'edit' : 'new')
|
|
330
330
|
networks.value = newValue
|
|
331
331
|
},
|
|
332
332
|
{ immediate: true }
|
|
@@ -378,7 +378,7 @@ watch(
|
|
|
378
378
|
// cdDvdDrivesType.value = Array(newValue.length).fill('edit')
|
|
379
379
|
const count = newValue?.length || 0
|
|
380
380
|
cdDvdDrivesIndex.value = [...Array(count).keys()]
|
|
381
|
-
cdDvdDrivesType.value = Array(count).fill('edit')
|
|
381
|
+
cdDvdDrivesType.value = Array(count).fill(props.isEdit ? 'edit' : 'new')
|
|
382
382
|
cdDvdDrives.value = newValue
|
|
383
383
|
},
|
|
384
384
|
{ immediate: true }
|
|
@@ -446,7 +446,7 @@ watch(
|
|
|
446
446
|
|
|
447
447
|
const count = newValue?.length || 0
|
|
448
448
|
pciDevicesIndex.value = [...Array(count).keys()]
|
|
449
|
-
pciDevicesType.value = Array(count).fill('edit')
|
|
449
|
+
pciDevicesType.value = Array(count).fill(props.isEdit ? 'edit' : 'new')
|
|
450
450
|
pciDevices.value = newValue || []
|
|
451
451
|
},
|
|
452
452
|
{ immediate: true }
|