bfg-common 1.3.330 → 1.3.332

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.
@@ -120,6 +120,7 @@ const datastoreForm = ref<UI_I_CreateDatastoreForm>({
120
120
  sharedStorm: {
121
121
  name: '',
122
122
  dev_names: [],
123
+ hosts: [],
123
124
  pool_name: '',
124
125
  type_code: 2,
125
126
  },
@@ -255,6 +256,7 @@ const onSaveAndNextSharedStorm = (event: any): void => {
255
256
  const { sharedStorm } = datastoreForm.value
256
257
  sharedStorm.name = event.name
257
258
  sharedStorm.dev_names = event.lunDisk.map((lun: UI_I_LunDisk) => lun.name)
259
+ sharedStorm.hosts = [event.host]
258
260
 
259
261
  dataReadyView.value = constructDataReadyViewFunc(
260
262
  localization.value,
@@ -7,9 +7,10 @@ import type {
7
7
  } from '~/components/common/wizards/datastore/add/lib/models/types'
8
8
 
9
9
  const stepFromSharedStorm = (
10
- localization: UI_I_Localization
10
+ localization: UI_I_Localization,
11
+ mode: UI_T_WizardDatastoreMode
11
12
  ): UI_I_VerticalStepItem[] => {
12
- return [
13
+ const steps = [
13
14
  { text: localization.type, disabled: false, complete: false },
14
15
  {
15
16
  text: localization.nameAndDeviceSelection,
@@ -21,13 +22,22 @@ const stepFromSharedStorm = (
21
22
  // disabled: true,
22
23
  // complete: false,
23
24
  // }, <!-- TODO в shared-storm пока верси не будет -->
24
- {
25
+ // {
26
+ // text: localization.partitionConfiguration,
27
+ // disabled: true,
28
+ // complete: false,
29
+ // },
30
+ ]
31
+ // TODO refactoring
32
+ if (mode === 'procurator') {
33
+ steps.push({
25
34
  text: localization.partitionConfiguration,
26
35
  disabled: true,
27
36
  complete: false,
28
- },
29
- { text: localization.readyComplete, disabled: true, complete: false },
30
- ]
37
+ })
38
+ }
39
+ steps.push({ text: localization.readyComplete, disabled: true, complete: false })
40
+ return steps
31
41
  }
32
42
 
33
43
  const stepFromNfs = (
@@ -17,6 +17,7 @@ interface I_NfsForm extends UI_I_NfsPoolNameForm<UI_T_NfsType>{
17
17
  }
18
18
  interface I_SharedStorm extends UI_I_CreateDatastoreBodyRequest {
19
19
  dev_names: string[]
20
+ hosts: string[]
20
21
  }
21
22
 
22
23
  export interface UI_I_CreateDatastoreForm {
@@ -23,7 +23,7 @@
23
23
  <!-- TODO в shared-storm пока верси не будет -->
24
24
 
25
25
  <common-wizards-datastore-add-shared-storm-partition-configuration
26
- v-show="props.stepPosition === 2"
26
+ v-show="props.mode === 'procurator' && props.stepPosition === 2"
27
27
  :vmfs-version="vmfsVersion"
28
28
  :selected-lun-disk-size="lunDiskTotalCapacity"
29
29
  />
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.330",
4
+ "version": "1.3.332",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",