bfg-common 1.4.366 → 1.4.368

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.
@@ -99,19 +99,24 @@ import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/schedu
99
99
  import { constructDataReadyViewFunc } from '~/components/common/wizards/vm/migrate/lib/config/constructDataReady'
100
100
  import * as validation from '~/components/common/wizards/vm/migrate/lib/validations'
101
101
 
102
- const props = defineProps<{
103
- project: UI_T_Project
104
- isScheduledTasks: boolean
105
- vmSettings: UI_I_VmSettings | null
106
- vmName: string
107
- getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
108
- getComputeResourceData: (payload: UI_I_TablePayload) => Promise<void>
109
- datastore: UI_I_DatastoreTableItem[]
110
- configurePerDisks: UI_I_StorageConfigurePerDiskItem[]
111
- computeResourceTableData?: any
112
- computeResourceTree?: UI_I_TreeNode
113
- selectedVirtualMachine?: string
114
- }>()
102
+ const props = withDefaults(
103
+ defineProps<{
104
+ project: UI_T_Project
105
+ isScheduledTasks: boolean
106
+ vmSettings: UI_I_VmSettings | null
107
+ vmName: string
108
+ getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
109
+ getComputeResourceData: (payload: UI_I_TablePayload) => Promise<void>
110
+ datastore: UI_I_DatastoreTableItem[]
111
+ configurePerDisks: UI_I_StorageConfigurePerDiskItem[]
112
+ computeResourceTableData?: any
113
+ computeResourceTree?: UI_I_TreeNode | null
114
+ selectedVirtualMachine?: string
115
+ }>(),
116
+ {
117
+ computeResourceTree: null,
118
+ }
119
+ )
115
120
  const emits = defineEmits<{
116
121
  (event: 'hide'): void
117
122
  (event: 'finish', value: UI_I_MigrateFormLocal): void
@@ -175,18 +180,18 @@ const validationFunc = async (
175
180
  ): Promise<UI_I_ValidationReturn> => {
176
181
  let stepHasError = false
177
182
 
178
- if (wizard.isValidateForStep(3, currentStep.id, nextStep.id)) {
179
- const nameValidation = await validation.checkSelectedResourceSync(
180
- localization.value,
181
- form.value.resource,
182
- wizard,
183
- value
184
- )
185
-
186
- value = nameValidation.newValue
187
-
188
- stepHasError = nameValidation.stepHasError
189
- }
183
+ // if (wizard.isValidateForStep(3, currentStep.id, nextStep.id)) {
184
+ // const nameValidation = await validation.checkSelectedResourceSync(
185
+ // localization.value,
186
+ // form.value.resource,
187
+ // wizard,
188
+ // value
189
+ // )
190
+ //
191
+ // value = nameValidation.newValue
192
+ //
193
+ // stepHasError = nameValidation.stepHasError
194
+ // }
190
195
 
191
196
  if (wizard.isValidateForStep(4, currentStep.id, nextStep.id)) {
192
197
  const nameValidation = await validation.checkSelectedDatastoreSync(
@@ -62,7 +62,7 @@ const props = defineProps<{
62
62
  alertMessages: string[]
63
63
  getComputeResourceData: (payload: UI_I_TablePayload) => Promise<void>
64
64
  computeResourceData: any
65
- computeResourceTree: UI_I_TreeNode
65
+ computeResourceTree: UI_I_TreeNode | null
66
66
  }>()
67
67
  const model = defineModel<UI_I_MigrateFormLocal>({ required: true })
68
68
  const emits = defineEmits<{
@@ -62,7 +62,7 @@ const props = defineProps<{
62
62
  totalPages: number
63
63
  type: UI_T_SelectComputeResourceTabType
64
64
  }>()
65
- const selectedDataLocal = defineModel<number>({ required: true })
65
+ const selectedDataLocal = defineModel<number | null>({ required: true })
66
66
 
67
67
  const localization = computed<UI_I_Localization>(() => useLocal())
68
68
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.366",
4
+ "version": "1.4.368",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",