bfg-common 1.5.786 → 1.5.787

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.
@@ -25,7 +25,7 @@
25
25
  </template>
26
26
 
27
27
  <script setup lang="ts">
28
- import type { API_UI_I_Error } from '~/lib/models/store/interfaces'
28
+ // import type { API_UI_I_Error } from '~/lib/models/store/interfaces'
29
29
  import type { UI_I_Localization } from '~/lib/models/interfaces'
30
30
  import { validateObjectName } from '~/lib/utils/validation'
31
31
  import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
@@ -123,19 +123,16 @@ const submit = async (cb: Function): Promise<void> => {
123
123
  const checkNameIsValid = async (nameLocal: string): Promise<boolean> => {
124
124
  const nameRequestUrlLocal: string = props.nameRequestUrl.replace('{name}', nameLocal)
125
125
 
126
-
127
126
  const { statusCode } = await validateObjectName({ url: nameRequestUrlLocal })
128
127
 
129
- console.log(statusCode, 11)
130
-
131
- const { error } = await useMyFetch<null, API_UI_I_Error>(
132
- nameRequestUrlLocal,
133
- {
134
- method: 'GET',
135
- }
136
- )
137
- const status = error.value?.statusCode || 200
138
- switch (status) {
128
+ // const { error } = await useMyFetch<null, API_UI_I_Error>(
129
+ // nameRequestUrlLocal,
130
+ // {
131
+ // method: 'GET',
132
+ // }
133
+ // )
134
+ // const status = error.value?.statusCode || 200
135
+ switch (statusCode) {
139
136
  case 400: // Empty name
140
137
  showValidationErrors([
141
138
  localization.value.common.emptyNameValidationDescription,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.786",
4
+ "version": "1.5.787",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",