bfg-common 1.4.229 → 1.4.230
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.
|
@@ -292,12 +292,12 @@ const checkName = async (
|
|
|
292
292
|
return new Promise((resolve) => {
|
|
293
293
|
nameFormSubmit.value = (isValid: boolean) => {
|
|
294
294
|
if (!isValid) {
|
|
295
|
-
stepHasError = wizard.setValidation(
|
|
295
|
+
stepHasError = wizard.setValidation(dynamicSteps.value.selectName, 'name', {
|
|
296
296
|
fieldMessage: 'aaa',
|
|
297
297
|
alertMessage: 'aaa',
|
|
298
298
|
})
|
|
299
|
-
} else if (wizard.hasMessage(
|
|
300
|
-
value = wizard.removeValidation(
|
|
299
|
+
} else if (wizard.hasMessage(dynamicSteps.value.selectName, 'name')) {
|
|
300
|
+
value = wizard.removeValidation(dynamicSteps.value.selectName, 'name', value)
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
resolve({
|
|
@@ -316,12 +316,12 @@ const checkStorage = async (
|
|
|
316
316
|
return new Promise((resolve) => {
|
|
317
317
|
storageSubmit.value = (isValid: boolean) => {
|
|
318
318
|
if (!isValid) {
|
|
319
|
-
stepHasError = wizard.setValidation(
|
|
319
|
+
stepHasError = wizard.setValidation(dynamicSteps.value.selectStorage, 'storage', {
|
|
320
320
|
fieldMessage: 'aaa',
|
|
321
321
|
alertMessage: 'aaa',
|
|
322
322
|
})
|
|
323
|
-
} else if (wizard.hasMessage(
|
|
324
|
-
value = wizard.removeValidation(
|
|
323
|
+
} else if (wizard.hasMessage(dynamicSteps.value.selectStorage, 'storage')) {
|
|
324
|
+
value = wizard.removeValidation(dynamicSteps.value.selectStorage, 'storage', value)
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
resolve({
|
|
@@ -340,12 +340,12 @@ const checkCustomizeHardware = async (
|
|
|
340
340
|
return new Promise((resolve) => {
|
|
341
341
|
customizeHardwareSubmit.value = (isValid: boolean) => {
|
|
342
342
|
if (!isValid) {
|
|
343
|
-
stepHasError = wizard.setValidation(
|
|
343
|
+
stepHasError = wizard.setValidation(dynamicSteps.value.customizeHardware, 'customizeHardware', {
|
|
344
344
|
fieldMessage: 'aaa',
|
|
345
345
|
alertMessage: 'aaa',
|
|
346
346
|
})
|
|
347
|
-
} else if (wizard.hasMessage(
|
|
348
|
-
value = wizard.removeValidation(
|
|
347
|
+
} else if (wizard.hasMessage(dynamicSteps.value.customizeHardware, 'customizeHardware')) {
|
|
348
|
+
value = wizard.removeValidation(dynamicSteps.value.customizeHardware, 'customizeHardware', value)
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
resolve({
|