bfg-common 1.3.352 → 1.3.353

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.
@@ -230,7 +230,7 @@ const dataTable = computed<API_UI_I_DataTable<
230
230
 
231
231
  /* Select host */
232
232
  // const hostData = ref<UI_I_SelectHostOptions[] | null>(null)
233
- const selectedHost = ref<string>('')
233
+ const selectedHost = ref<string>(props.hostId || '')
234
234
  const hostOptions = computed<UI_I_SelectHostOptions[]>(() =>
235
235
  hostsOptionsFunc(localization.value, props.datacenterHosts)
236
236
  ) // <!-- TODO Нам сейчас он не нужен. Мы монтируем nfs только на один хост ( procurator )-->
@@ -277,7 +277,7 @@ const validationTextForSphere = (): string => {
277
277
  }
278
278
 
279
279
  if (props.datastoreType === 'shared-storm') {
280
- return !selectedHost.value && !props.hostId
280
+ return !selectedHost.value
281
281
  ? 'selectHostToContinueAlert'
282
282
  : 'selectDiskToContinueAlert'
283
283
  }
@@ -321,7 +321,7 @@ const submit = async (): Promise<void> => {
321
321
 
322
322
  const valid = validation.touch()
323
323
  const isShowAlertDanger =
324
- mode === 'procurator' || props.hostId
324
+ mode === 'procurator'
325
325
  ? !selectedLunDisk.value.length
326
326
  : validatePropertiesForSphere()
327
327
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.352",
4
+ "version": "1.3.353",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",