bfg-common 1.1.69 → 1.1.70
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/add/customizeHardware/virtualHardware/VirtualHardware.vue
CHANGED
|
@@ -387,7 +387,8 @@ const onRemoveCdDvdDrive = (
|
|
|
387
387
|
): void => {
|
|
388
388
|
const removeIndex = cdDvdDrivesIndex.value.indexOf(index)
|
|
389
389
|
|
|
390
|
-
if (!cdDvdDrive.create && !cdDvdDrive.attach) {
|
|
390
|
+
// if (!cdDvdDrive.create && !cdDvdDrive.attach) {
|
|
391
|
+
if (cdDvdDrivesType.value[index] === 'edit' && !cdDvdDrive.attach) {
|
|
391
392
|
cdDvdDrivesType.value = cdDvdDrivesType.value.map((item, key) => {
|
|
392
393
|
if (key === removeIndex) return 'removed'
|
|
393
394
|
return item
|