bfg-common 1.4.151 → 1.4.153
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/wizards/vm/migrate/lib/config/constructDataReady.ts +10 -6
- package/components/common/wizards/vm/migrate/select/storage/configure/batch/Batch.vue +1 -1
- package/components/common/wizards/vm/migrate/select/storage/configure/disk/Disk.vue +2 -2
- package/components/common/wizards/vm/migrate/select/storage/configure/disk/table/lib/config/diskTable.ts +2 -1
- package/package.json +1 -1
|
@@ -3,8 +3,7 @@ import type { UI_I_MigrateReadyBlockData } from '~/components/common/wizards/vm/
|
|
|
3
3
|
import type { UI_I_MigrateFormLocal } from '~/components/common/wizards/vm/migrate/lib/models/interfaces'
|
|
4
4
|
import { UI_E_VmMigrationType } from '~/components/common/wizards/vm/migrate/lib/models/enums'
|
|
5
5
|
import { UI_E_SelectStorageDiskFormat } from '~/components/common/wizards/vm/migrate/select/storage/lib/models/enums'
|
|
6
|
-
import {
|
|
7
|
-
|
|
6
|
+
import { virtualDiskFormatOptionsFunc } from '~/components/common/wizards/vm/migrate/select/storage/configure/batch/config/virtualDiskFormat'
|
|
8
7
|
const migrateOnlyStorageDataView = (
|
|
9
8
|
localization: UI_I_Localization,
|
|
10
9
|
form: UI_I_MigrateFormLocal,
|
|
@@ -14,7 +13,7 @@ const migrateOnlyStorageDataView = (
|
|
|
14
13
|
|
|
15
14
|
const isActivePerDiskTab: boolean = configure.type === 'configure-disk'
|
|
16
15
|
|
|
17
|
-
const diskFormat =
|
|
16
|
+
const diskFormat = virtualDiskFormatOptionsFunc().find(
|
|
18
17
|
(file) => file.value === disk_format
|
|
19
18
|
)!
|
|
20
19
|
|
|
@@ -26,7 +25,7 @@ const migrateOnlyStorageDataView = (
|
|
|
26
25
|
},
|
|
27
26
|
{
|
|
28
27
|
label: localization.common.diskFormat,
|
|
29
|
-
value: diskFormat.
|
|
28
|
+
value: diskFormat.label,
|
|
30
29
|
permissions: ['batch-configure'],
|
|
31
30
|
},
|
|
32
31
|
{
|
|
@@ -81,13 +80,18 @@ const setSelectNetworkDataView = (
|
|
|
81
80
|
}
|
|
82
81
|
|
|
83
82
|
if (isBasicNetworkMode) {
|
|
84
|
-
|
|
83
|
+
type Replacements = {
|
|
84
|
+
lan: string
|
|
85
|
+
network: string
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const replacements: Replacements = {
|
|
85
89
|
lan: sourceNetwork,
|
|
86
90
|
network: value,
|
|
87
91
|
}
|
|
88
92
|
return networkAdapterWillBeReassignedTo.replace(
|
|
89
93
|
/{(\w+)}/g,
|
|
90
|
-
(_, key) => replacements[key]
|
|
94
|
+
(_, key: keyof Replacements) => replacements[key]
|
|
91
95
|
)
|
|
92
96
|
}
|
|
93
97
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
class="configure-batch-mode__disk-format"
|
|
9
9
|
/>
|
|
10
10
|
|
|
11
|
-
<common-wizards-vm-
|
|
11
|
+
<common-wizards-vm-migrate-select-storage-configure-batch-table
|
|
12
12
|
v-model="model.storage"
|
|
13
13
|
:get-datastore-table-func="props.getDatastoreTableFunc"
|
|
14
14
|
:datastore="props.datastore"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
</button>
|
|
13
13
|
</div>
|
|
14
14
|
|
|
15
|
-
<common-wizards-vm-
|
|
15
|
+
<common-wizards-vm-migrate-select-storage-configure-disk-table
|
|
16
16
|
v-model="selectedPerDiskKeysLocal"
|
|
17
17
|
:configure-per-disks="props.configurePerDisks"
|
|
18
18
|
/>
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
<script lang="ts" setup>
|
|
23
23
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
24
|
-
import type { UI_I_StorageConfigurePerDiskItem } from '~/components/common/wizards/vm/migrate/select/storage/
|
|
24
|
+
import type { UI_I_StorageConfigurePerDiskItem } from '~/components/common/wizards/vm/migrate/select/storage/configure/disk/table/lib/models/interfaces'
|
|
25
25
|
import type { UI_T_VmMigrateSelectStorageTab } from '~/components/common/wizards/vm/migrate/select/storage/lib/models/types'
|
|
26
26
|
|
|
27
27
|
const props = defineProps<{
|
|
@@ -7,7 +7,8 @@ import * as defaultSettings from '~/components/atoms/table/dataGrid/lib/config/s
|
|
|
7
7
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
8
8
|
import type { UI_I_StorageConfigurePerDiskItem } from '~/components/common/wizards/vm/migrate/select/storage/configure/disk/table/lib/models/interfaces'
|
|
9
9
|
import { UI_E_SelectStorageDiskFormat } from '~/components/common/wizards/vm/migrate/select/storage/lib/models/enums'
|
|
10
|
-
import { vmMigrateDiskTableItemKeys } from '~/components/common/wizards/vm/migrate/select/storage/
|
|
10
|
+
import { vmMigrateDiskTableItemKeys } from '~/components/common/wizards/vm/migrate/select/storage/configure/disk/table/lib/config/tableKeys'
|
|
11
|
+
|
|
11
12
|
const getItems = (
|
|
12
13
|
localization: UI_I_Localization
|
|
13
14
|
): [string, boolean, string, string][] => {
|