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(0, 'name', {
295
+ stepHasError = wizard.setValidation(dynamicSteps.value.selectName, 'name', {
296
296
  fieldMessage: 'aaa',
297
297
  alertMessage: 'aaa',
298
298
  })
299
- } else if (wizard.hasMessage(0, 'name')) {
300
- value = wizard.removeValidation(0, 'name', value)
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(1, 'storage', {
319
+ stepHasError = wizard.setValidation(dynamicSteps.value.selectStorage, 'storage', {
320
320
  fieldMessage: 'aaa',
321
321
  alertMessage: 'aaa',
322
322
  })
323
- } else if (wizard.hasMessage(1, 'storage')) {
324
- value = wizard.removeValidation(1, 'storage', value)
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(3, 'customizeHardware', {
343
+ stepHasError = wizard.setValidation(dynamicSteps.value.customizeHardware, 'customizeHardware', {
344
344
  fieldMessage: 'aaa',
345
345
  alertMessage: 'aaa',
346
346
  })
347
- } else if (wizard.hasMessage(3, 'customizeHardware')) {
348
- value = wizard.removeValidation(3, 'customizeHardware', value)
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({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.229",
4
+ "version": "1.4.230",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",