bfg-common 1.3.13 → 1.3.15
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.
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<p>{{ stepSubTitle }}</p>
|
|
18
18
|
</div>
|
|
19
19
|
|
|
20
|
-
<common-vm-actions-common-select-name
|
|
20
|
+
<common-vm-actions-common-select-name-old
|
|
21
21
|
v-show="stepPosition === 0"
|
|
22
22
|
:show="stepPosition === 0"
|
|
23
23
|
:name-form-submit="nameFormSubmit"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
@check-name="emits('check-name', $event)"
|
|
27
27
|
@loading="loading = $event"
|
|
28
28
|
/>
|
|
29
|
-
<common-vm-actions-common-select-storage
|
|
29
|
+
<common-vm-actions-common-select-storage-old
|
|
30
30
|
v-show="stepPosition === 1"
|
|
31
31
|
:storage-submit="storageSubmit"
|
|
32
32
|
:datastore="props.datastore"
|
|
@@ -346,10 +346,10 @@ const onFinish = (): void => {
|
|
|
346
346
|
|
|
347
347
|
const selectedNavItem = ref<UI_T_SelectedNavItem>(0)
|
|
348
348
|
|
|
349
|
-
const nameFormSubmit = ref<
|
|
350
|
-
const storageSubmit = ref<
|
|
349
|
+
const nameFormSubmit = ref<null | Function>(null)
|
|
350
|
+
const storageSubmit = ref<null | Function>(null)
|
|
351
351
|
const selectOptionsSubmit = ref<number>(0)
|
|
352
|
-
const customizeHardwareSubmit = ref<
|
|
352
|
+
const customizeHardwareSubmit = ref<null | Function>(null)
|
|
353
353
|
|
|
354
354
|
const onNext = (force = false): void => {
|
|
355
355
|
const isValid = checkSubmit(force)
|
|
@@ -381,11 +381,11 @@ const checkLocalChangeAndChangeStepStatus = (): void => {
|
|
|
381
381
|
|
|
382
382
|
const checkSubmit = (force = false): boolean => {
|
|
383
383
|
if (stepPosition.value === 0 && !force) {
|
|
384
|
-
nameFormSubmit.value
|
|
384
|
+
nameFormSubmit.value = () => {}
|
|
385
385
|
return false
|
|
386
386
|
}
|
|
387
387
|
if (stepPosition.value === 1 && !force) {
|
|
388
|
-
storageSubmit.value
|
|
388
|
+
storageSubmit.value = () => {}
|
|
389
389
|
return false
|
|
390
390
|
}
|
|
391
391
|
if (stepPosition.value === 2 && !force) {
|
|
@@ -393,22 +393,22 @@ const checkSubmit = (force = false): boolean => {
|
|
|
393
393
|
return false
|
|
394
394
|
}
|
|
395
395
|
if (stepPosition.value === 3 && !force) {
|
|
396
|
-
customizeHardwareSubmit.value
|
|
396
|
+
customizeHardwareSubmit.value = () => {}
|
|
397
397
|
return false
|
|
398
398
|
}
|
|
399
399
|
return true
|
|
400
400
|
}
|
|
401
401
|
const checkSubmitByManual = (step: number): boolean => {
|
|
402
402
|
if (stepPosition.value === 0) {
|
|
403
|
-
nameFormSubmit.value
|
|
403
|
+
nameFormSubmit.value = () => {}
|
|
404
404
|
return false
|
|
405
405
|
}
|
|
406
406
|
if (stepPosition.value === 1) {
|
|
407
|
-
storageSubmit.value
|
|
407
|
+
storageSubmit.value = () => {}
|
|
408
408
|
return false
|
|
409
409
|
}
|
|
410
410
|
if (step === 3) {
|
|
411
|
-
customizeHardwareSubmit.value
|
|
411
|
+
customizeHardwareSubmit.value = () => {}
|
|
412
412
|
return false
|
|
413
413
|
}
|
|
414
414
|
return true
|