bfg-common 1.3.331 → 1.3.333

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.
@@ -288,8 +288,10 @@ const saveChangesAndNextNfs = (event: any, next = true): void => {
288
288
 
289
289
  const isShowCompleteBlock = computed<boolean>(() => {
290
290
  const localStep = datastoreType.value === 'local' && stepPosition.value === 2
291
+
291
292
  const sharesStep =
292
- datastoreType.value === 'shared-storm' && stepPosition.value === 3
293
+ datastoreType.value === 'shared-storm' && (props.mode === 'procurator' ? stepPosition.value === 3 : stepPosition.value === 2)
294
+
293
295
  const nfsFirst =
294
296
  datastoreType.value === 'nfs' &&
295
297
  nfsVersion.value === 'nfs-3' &&
@@ -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 = (
@@ -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.331",
4
+ "version": "1.3.333",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",