bfg-common 1.6.94 → 1.6.96
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
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
:files="props.files"
|
|
10
10
|
:is-edit="props.isEdit"
|
|
11
11
|
:storage="props.storage"
|
|
12
|
-
:
|
|
12
|
+
:hard-disks-max-size="hardDisksMaxSize"
|
|
13
13
|
:project="props.project"
|
|
14
14
|
:max-memory="props.maxMemory"
|
|
15
15
|
:cpu-models="props.cpuModels"
|
|
@@ -91,7 +91,7 @@ import type {
|
|
|
91
91
|
UI_I_DropdownTreeItem,
|
|
92
92
|
UI_I_DropdownTreeItemChild,
|
|
93
93
|
} from '~/components/atoms/dropdown/tree/lib/models/interfaces'
|
|
94
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
94
|
+
import type { UI_I_ArbitraryObject, UI_I_Localization } from '~/lib/models/interfaces'
|
|
95
95
|
import type {
|
|
96
96
|
UI_I_MediatedDevice,
|
|
97
97
|
UI_I_PciDevice,
|
|
@@ -266,6 +266,7 @@ watchEffect(() => {
|
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
const storageLocal = disk.storage || props.storage
|
|
269
|
+
if (!storageLocal) return
|
|
269
270
|
|
|
270
271
|
const hasStorage = datastoreFree[storageLocal.id]
|
|
271
272
|
const storage = props.datastore.find((item) => item.id === storageLocal.id)
|
|
@@ -282,6 +283,7 @@ watchEffect(() => {
|
|
|
282
283
|
if (disk.device_type !== 'disk') return
|
|
283
284
|
|
|
284
285
|
const storageLocal = disk.storage || props.storage
|
|
286
|
+
if (!storageLocal) return
|
|
285
287
|
|
|
286
288
|
const isExisting = hardDisksType.value[hardDisksIndex.value[i]] === 'exist'
|
|
287
289
|
if (isExisting) {
|