bfg-common 1.5.501 → 1.5.503

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.
@@ -54,6 +54,7 @@
54
54
  :validate-empty-name="props.validateEmptyName"
55
55
  :title="title"
56
56
  :name-request-url="props.nameRequestUrl"
57
+ :validation-description="validationDescription"
57
58
  :name-test-ids="nameTestIds"
58
59
  @get-storage="emits('get-storage', $event)"
59
60
  @get-folders-or-files="emits('get-folders-or-files', $event)"
@@ -131,6 +132,7 @@
131
132
  :validate-empty-name="props.validateEmptyName"
132
133
  :title="title"
133
134
  :name-request-url="props.nameRequestUrl"
135
+ :validation-description="validationDescription"
134
136
  :name-test-ids="nameTestIds"
135
137
  @get-storage="emits('get-storage', $event)"
136
138
  @get-folders-or-files="emits('get-folders-or-files', $event)"
@@ -341,6 +343,7 @@ const nameTestIds: UI_I_NameTestIds = {
341
343
  name: 'virtual-machine-name',
342
344
  helpIcon: 'show-vm-name-help-icon',
343
345
  }
346
+ const validationDescription = localization.value.common.enterValidLocationVirtualMachine
344
347
 
345
348
  const isShowSelectTemplate = computed<boolean>(
346
349
  () =>
@@ -79,6 +79,7 @@
79
79
  :allowed-location-kinds="props.allowedLocationKinds"
80
80
  :location-description="props.locationDescription"
81
81
  :validate-empty-name="props.validateEmptyName"
82
+ :validation-description="props.validationDescription"
82
83
  :test-ids="props.nameTestIds"
83
84
  @submit="emits('change-name', $event)"
84
85
  @has-errors="isNameAlertWrapperEmpty = $event"
@@ -516,6 +517,7 @@ const props = withDefaults(
516
517
  compatibilityInfo: string
517
518
  isShowPowerOn: boolean
518
519
  validateEmptyName: boolean
520
+ validationDescription: string
519
521
  isShowSelectTemplate: boolean
520
522
  title: string
521
523
  nameRequestUrl: string
@@ -47,6 +47,7 @@
47
47
  :allowed-location-kinds="props.allowedLocationKinds"
48
48
  :location-description="props.locationDescription"
49
49
  :validate-empty-name="props.validateEmptyName"
50
+ :validation-description="props.validationDescription"
50
51
  :test-ids="props.nameTestIds"
51
52
  @submit="emits('change-name', $event)"
52
53
  />
@@ -322,6 +323,7 @@ const props = withDefaults(
322
323
  cpuModels: UI_I_OptionItem[]
323
324
  selectedNavItem: UI_T_SelectedNavItem
324
325
  compatibilityInfo: string
326
+ validationDescription: string
325
327
  isShowPowerOn: boolean
326
328
  validateEmptyName: boolean
327
329
  title: string
@@ -32,6 +32,7 @@
32
32
  "
33
33
  :name-form-submit="nameFormSubmit"
34
34
  :name-request-url="props.nameRequestUrl"
35
+ :validation-description="localization.common.enterValidLocationVirtualMachine"
35
36
  :test-ids="nameTestIds"
36
37
  :has-location="props.project === 'sphere'"
37
38
  :location-nodes="props.locationNodes"
@@ -37,6 +37,7 @@ const props = withDefaults(
37
37
  nameFormSubmit: null | Function
38
38
  show: boolean
39
39
  nameRequestUrl: string
40
+ validationDescription: string
40
41
  testIds: UI_I_NameTestIds
41
42
  hasLocation?: boolean
42
43
  validateEmptyName?: boolean
@@ -90,11 +91,12 @@ const submit = async (cb: Function): Promise<void> => {
90
91
 
91
92
  if (props.hasLocation) {
92
93
  if (
93
- location.value &&
94
- !props.allowedLocationKinds.includes(location.value.kind)
94
+ !location.value ||
95
+ (location.value &&
96
+ !props.allowedLocationKinds.includes(location.value.kind))
95
97
  ) {
96
98
  showValidationErrors([
97
- localization.value.common.enterValidLocationVirtualMachine,
99
+ props.validationDescription,
98
100
  ])
99
101
  cb(false)
100
102
  return
@@ -31,6 +31,7 @@
31
31
  "
32
32
  :name-form-submit="nameFormSubmit"
33
33
  :name-request-url="props.nameRequestUrl"
34
+ :validation-description="localization.common.enterValidLocationVirtualMachine"
34
35
  :test-ids="nameTestIds"
35
36
  :has-location="props.project === 'sphere'"
36
37
  :location-nodes="props.locationNodes"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.501",
4
+ "version": "1.5.503",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",