bfg-common 1.5.542 → 1.5.544

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.
@@ -21,13 +21,8 @@
21
21
  <div class="subtitle-block flex-row items-start">
22
22
  <ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
23
23
 
24
- <common-tooltip-help
25
- :help-text="localization.common.datastoreTypeHelpDesc"
26
- :title="localization.common.information"
27
- test-id="datastore-type-subtitle"
28
- help-id="datastore-type-subtitle-icon"
29
- dropdown-width="320px"
30
- dropdown-left
24
+ <common-wizards-vm-migrate-vm-origin
25
+ :vm-origin="props.vmOrigin"
31
26
  />
32
27
  </div>
33
28
  </div>
@@ -62,16 +57,7 @@
62
57
  </div>
63
58
  </template>
64
59
  <template #content>
65
- <common-wizards-datastore-add-steps-name-and-device
66
- v-if="selectedStep.id === dynamicSteps.nameAndDevice"
67
- v-model="formModelLocal"
68
- :project="props.project"
69
- :selected-node="props.selectedNode"
70
- :messages-fields="selectedStep.fields"
71
- :hosts="props.nfsHosts"
72
- :host-id="props.hostId"
73
- :is-main-filter="props.isMainFilter"
74
- />
60
+ Content
75
61
  </template>
76
62
  </ui-wizard-block>
77
63
 
@@ -96,13 +82,7 @@
96
82
  </div>
97
83
  </template>
98
84
  <template #content>
99
- <common-wizards-datastore-add-steps-name-and-configure
100
- v-if="selectedStep.id === dynamicSteps.nameAndConfigure"
101
- v-model="formModelLocal"
102
- :project="props.project"
103
- :messages-fields="selectedStep.fields"
104
- :is-loading="isLoading"
105
- />
85
+ content
106
86
  </template>
107
87
  </ui-wizard-block>
108
88
 
@@ -129,12 +109,7 @@
129
109
  </div>
130
110
  </template>
131
111
  <template #content>
132
- <common-wizards-datastore-add-steps-host-accessibility
133
- v-if="selectedStep.id === dynamicSteps.hostAccessibility"
134
- v-model="formModelLocal.hosts"
135
- :alert-messages="props.alertMessages[dynamicSteps.nameAndDevice]"
136
- :hosts="props.nfsHosts"
137
- />
112
+ Content
138
113
  </template>
139
114
  </ui-wizard-block>
140
115
 
@@ -150,13 +125,7 @@
150
125
  </div>
151
126
  </template>
152
127
  <template #content>
153
- <common-wizards-datastore-add-steps-ready-complete
154
- v-if="selectedStep.id === dynamicSteps.readyComplete"
155
- :form="formModelLocal"
156
- :project="props.project"
157
- :hosts="props.nfsHosts"
158
- :host-id="props.hostId"
159
- />
128
+ Content
160
129
  </template>
161
130
  </ui-wizard-block>
162
131
  </template>
@@ -174,11 +143,9 @@ import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models
174
143
  import type { UI_I_Localization } from '~/lib/models/interfaces'
175
144
  import type { UI_T_Project } from '~/lib/models/types'
176
145
  import type { UI_I_MigrateFormLocal } from '~/components/common/wizards/vm/migrate/lib/models/interfaces'
177
- import type { UI_I_CreateDatastoreForm } from '~/components/common/wizards/datastore/add/lib/models/interfaces'
178
- import type { UI_I_CompatibleHosts } from '~/components/common/wizards/datastore/add/steps/hostAccessibility/table/lib/models/interfaces'
146
+ import type { UI_I_VmOrigin } from '~/components/common/wizards/vm/migrate/vmOrigin/lib/models/interfaces'
179
147
  import { dynamicSteps } from '~/components/common/wizards/vm/migrate/lib/config/steps'
180
148
 
181
- const formModelLocal = defineModel<UI_I_CreateDatastoreForm>({ required: true })
182
149
  const formModel = defineModel<UI_I_MigrateFormLocal>({ required: true })
183
150
  const props = withDefaults(
184
151
  defineProps<{
@@ -188,14 +155,10 @@ const props = withDefaults(
188
155
  alertMessages: string[][]
189
156
  selectedNode: UI_I_TreeNode
190
157
  title: string
191
- nfsHosts?: UI_I_CompatibleHosts
192
- hostId?: string
193
- isMainFilter?: boolean
158
+ vmOrigin?: UI_I_VmOrigin | null
194
159
  }>(),
195
160
  {
196
- nfsHosts: undefined,
197
- hostId: undefined,
198
- isMainFilter: undefined,
161
+ vmOrigin: null,
199
162
  }
200
163
  )
201
164
  const emits = defineEmits<{
@@ -46,7 +46,7 @@
46
46
  <common-wizards-vm-migrate-select-compute-resource
47
47
  v-if="isSphere"
48
48
  v-show="selectedStep.id === dynamicSteps.selectComputeResource"
49
- v-model="form"
49
+ v-model="formModel"
50
50
  :vm-state="props.vmState"
51
51
  :alert-messages="alertMessages[3]"
52
52
  :get-compute-resource-data="props.getComputeResourceData"
@@ -147,7 +147,6 @@ const props = withDefaults(
147
147
  const emits = defineEmits<{
148
148
  (event: 'change-steps', value: UI_I_WizardStep[]): void
149
149
  (event: 'hide-alert', value: number): void
150
- (event: 'get-networks', value: string): void
151
150
  (event: 'submit'): void
152
151
  (event: 'hide'): void
153
152
  }>()
@@ -189,14 +188,6 @@ const form = ref<UI_I_MigrateFormLocal>({
189
188
  const onChangeSteps = async (value: UI_I_WizardStep[]): Promise<void> =>
190
189
  emits('change-steps', value)
191
190
 
192
- // Get networks
193
- watch(
194
- () => form.value.resource.host,
195
- (newValue) => {
196
- emits('get-networks', newValue.id)
197
- }
198
- )
199
-
200
191
  watch(
201
192
  modelSchedulerTask,
202
193
  (newValue: UI_I_ScheduleNewTasksForm) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.542",
4
+ "version": "1.5.544",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",