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.
@@ -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 }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.2.48",
4
+ "version": "1.2.49",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",