bfg-common 1.4.143 → 1.4.144

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.
@@ -15,7 +15,7 @@ export const vmMigrateComputeResourceTabsFunc = (
15
15
  disabled: false,
16
16
  },
17
17
  {
18
- text: localization.common.resourcePools,
18
+ text: localization.inventoryTabs.resourcePools,
19
19
  value: 'resource-pool',
20
20
  disabled: false,
21
21
  },
@@ -40,7 +40,6 @@
40
40
  v-show="selectedStep.id === 3"
41
41
  v-model="form"
42
42
  :alert-messages="alertMessages[3]"
43
- :submit="selectStorageSubmit"
44
43
  :get-datastore-table-func="props.getDatastoreTableFunc"
45
44
  :datastore="props.datastore"
46
45
  :connected-storage-id-default="connectedStorageIdOnVm"
@@ -195,7 +194,6 @@ watch(
195
194
 
196
195
  const loading = ref<boolean>(false)
197
196
 
198
- const selectStorageSubmit = ref<number>(0)
199
197
  const selectComputeResourceSubmit = ref<number>(0)
200
198
 
201
199
  const connectedStorageIdOnVm = computed<string>(
@@ -146,6 +146,57 @@ const storageDetailsFunc = (
146
146
  result = [...result, ...storageData]
147
147
  }
148
148
 
149
+ if (migrate_type === 'resource-storage') {
150
+ const resourceStorageResult = [
151
+ {
152
+ label: localization.common.host,
153
+ value: '', //selectedComputeResource.selectedNode.name,
154
+ permissions: [],
155
+ },
156
+ {
157
+ label: localization.common.vMotionPriority,
158
+ value: localization.common[vMotion_priority],
159
+ permissions: [],
160
+ },
161
+ {
162
+ label: localization.common.networks,
163
+ value: setSelectNetworkDataView(localization, form),
164
+ permissions: [],
165
+ },
166
+ ]
167
+ const storageResult = migrateOnlyStorageDataView(localization, form, name)
168
+
169
+ result = [...result, ...resourceStorageResult, ...storageResult]
170
+ }
171
+
172
+ if (migrate_type === 'server') {
173
+ const serverResult = [
174
+ {
175
+ label: localization.common.vMotionPriority,
176
+ value: localization.common[vMotion_priority],
177
+ permissions: [],
178
+ },
179
+ {
180
+ label: localization.common.networks,
181
+ value: setSelectNetworkDataView(localization, form),
182
+ permissions: [],
183
+ },
184
+ ]
185
+ // Object.entries(selectedComputeResource).forEach(([key, value]) => {
186
+ // if (value !== null) {
187
+ // serverResult.unshift({
188
+ // label: localization.common[key],
189
+ // value: value.name,
190
+ // permissions: [],
191
+ // })
192
+ // }
193
+ // })
194
+
195
+ const storageResult = migrateOnlyStorageDataView(localization, form, name)
196
+
197
+ result = [...result, ...serverResult, ...storageResult]
198
+ }
199
+
149
200
  return result
150
201
  }
151
202
  export const constructDataReadyViewFunc = (
@@ -36,8 +36,8 @@
36
36
  :total-items="props.computeResourceData?.total_items || 0"
37
37
  :total-pages="props.computeResourceData?.total_pages || 1"
38
38
  :type="activeTab"
39
- />
40
- </template>a
39
+ /> </template
40
+ >a
41
41
 
42
42
  <common-wizards-vm-common-validation-compatibility
43
43
  :loading="!computeResourceDataLocal.selectedNode"
@@ -54,9 +54,9 @@ import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models
54
54
  import type { UI_I_TablePayload } from '~/lib/models/table/interfaces'
55
55
  import type { UI_T_SelectComputeResourceTabType } from '~/components/common/wizards/vm/migrate/select/storage/lib/models/types'
56
56
  import type { UI_E_ComputeResourceTabKamelKeys } from '~/components/common/wizards/vm/migrate/select/computeResource/lib/models/enums'
57
- import type { UI_T_VmMigrateType } from '~/components/common/wizards/vm/migrate/lib/models/types'
58
- import type { UI_I_SelectedTableDataKeys } from '~/components/common/wizards/vm/migrate/select/computeResource/lib/models/interfaces'
59
- import { vmMigrateComputeResourceTabsFunc } from '~/components/common/wizards/vm/migrate/select/computeResource/lib/config/tabsPannel'
57
+ import type { UI_T_VmMigrateType } from '~/components/common/wizards/vmNew/migrate/select/type/lib/models/types'
58
+ import type { UI_I_SelectedTableDataKeys } from '~/components/common/wizards/vmNew/migrate/select/computeResource/lib/models/interfaces'
59
+ import { vmMigrateComputeResourceTabsFunc } from '~/components/common/wizards/vmNew/migrate/select/computeResource/lib/config/tabsPannel'
60
60
 
61
61
  const props = defineProps<{
62
62
  submit: number
@@ -179,7 +179,8 @@ const checkValidityBlock = (): boolean => {
179
179
  )
180
180
 
181
181
  if (!hasSelectedData) {
182
- const errorText = localization.value.common.selectValidDestinationComputeResource
182
+ const errorText =
183
+ localization.value.common.selectValidDestinationComputeResource
183
184
 
184
185
  errorMessages.value = [errorText]
185
186
  return false
@@ -73,7 +73,6 @@ import { vmMigrateSelectStorageTabsFunc } from '~/components/common/wizards/vmNe
73
73
 
74
74
  const props = defineProps<{
75
75
  alertMessages: string[]
76
- submit: number
77
76
  getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
78
77
  datastore: UI_I_DatastoreTableItem[]
79
78
  connectedStorageIdDefault: string | null
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.143",
4
+ "version": "1.4.144",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",