bfg-common 1.3.539 → 1.3.541

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.
@@ -180,6 +180,7 @@ const onHideAlertInfo = (): void => {
180
180
 
181
181
  const errors = ref<string[]>([])
182
182
  const errorAlertDataId = ref<string>('')
183
+ const defaultDataId = ref<string>('device-selection-alert-error')
183
184
  const formErrors = ref<UI_I_ValidationTouchResult[]>([])
184
185
 
185
186
  /* Lun disk table */
@@ -253,7 +254,7 @@ const showValidationErrors = (
253
254
  errorAlertDataId.value = validateNameAndGenerateDataId(
254
255
  form.value.name.value,
255
256
  errorText,
256
- 'device-selection-alert-error'
257
+ defaultDataId.value
257
258
  )
258
259
  }
259
260
  formErrors.value = data
@@ -335,11 +336,11 @@ const submit = async (): Promise<void> => {
335
336
  : validatePropertiesForSphere()
336
337
 
337
338
  if (!valid.isValid || isShowAlertDanger) {
338
- const isModeSphere = mode === 'sphere' && props.datastoreType === 'local'
339
+ const isModeSphere = mode === 'sphere'
339
340
 
340
341
  const errorText =
341
342
  localization.value[
342
- isModeSphere ? 'selectHostToContinueAlert' : validationTextForSphere()
343
+ isModeSphere ? validationTextForSphere() : 'selectDiskToContinueAlert'
343
344
  ]
344
345
 
345
346
  showValidationErrors(valid, errorText, isShowAlertDanger)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.539",
4
+ "version": "1.3.541",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",