bfg-common 1.3.420 → 1.3.421

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.
@@ -1,12 +1,14 @@
1
1
  <template>
2
2
  <div class="nfs-container">
3
+ <span class="nfs-container__desc">{{ stepSubTitle }}</span>
4
+
3
5
  <common-wizards-datastore-add-nfs-version
4
- v-show="props.stepId === 4"
6
+ v-show="props.stepPosition === 1"
5
7
  v-model:version="nfsVersion"
6
8
  />
7
9
 
8
10
  <common-wizards-datastore-add-nfs-configuration
9
- v-show="props.stepId === 5"
11
+ v-show="props.stepPosition === 2"
10
12
  :mode="props.mode"
11
13
  :nfs-version="nfsVersion"
12
14
  :nfs-configuration-submit="nfsConfigurationSubmit"
@@ -37,10 +39,11 @@ import {
37
39
  UI_T_WizardDatastoreMode,
38
40
  } from '~/components/common/wizards/datastore/add/lib/models/types'
39
41
  import { UI_I_ConfigurationSendDataNfs } from '~/components/common/wizards/datastore/add/nfs/configuration/lib/models/interfaces'
42
+ import { subTitleFunc } from '~/components/common/wizards/datastore/add/lib/config/stepItems'
40
43
 
41
44
  const props = defineProps<{
42
45
  mode: UI_T_WizardDatastoreMode
43
- stepId: number
46
+ stepPosition: number
44
47
  datastoreType: UI_T_DatastoreType
45
48
  nfsConfigurationSubmit: number
46
49
  hostAccessibilitySubmit: number
@@ -56,6 +59,16 @@ const localization = computed<UI_I_Localization>(() => useLocal())
56
59
 
57
60
  const nfsVersion = ref<UI_T_NfsType>('nfs-3')
58
61
 
62
+ const stepSubTitle = computed<string>(() => {
63
+ const { datastoreType, stepPosition } = props
64
+ return subTitleFunc(
65
+ localization.value,
66
+ datastoreType,
67
+ stepPosition,
68
+ nfsVersion.value
69
+ )
70
+ })
71
+
59
72
  // const showHostAccessibility = computed<boolean>(() => {
60
73
  // return (
61
74
  // (props.stepPosition === 4 && nfsVersion.value === 'nfs-4.1') ||
@@ -63,7 +76,7 @@ const nfsVersion = ref<UI_T_NfsType>('nfs-3')
63
76
  // )
64
77
  // })
65
78
  const showHostAccessibility = computed<boolean>(() => {
66
- return props.mode === 'sphere' && props.stepId === 6
79
+ return props.mode === 'sphere' && props.stepPosition === 3
67
80
  })
68
81
 
69
82
  watch(nfsVersion, (newValue: UI_T_NfsType) => {
@@ -31,7 +31,7 @@
31
31
  @main-filter="emits('main-filter', $event)"
32
32
  />
33
33
 
34
- <common-wizards-datastore-add-shared-storm
34
+ <common-wizards-datastore-add-new-shared-storm
35
35
  v-show="datastoreType === 'shared-storm'"
36
36
  :mode="props.project"
37
37
  :step-id="selectedStep.id"
@@ -45,7 +45,7 @@
45
45
  @main-filter="emits('main-filter', $event)"
46
46
  />
47
47
 
48
- <common-wizards-datastore-add-nfs
48
+ <common-wizards-datastore-new-add-nfs
49
49
  v-show="datastoreType === 'nfs'"
50
50
  :mode="props.project"
51
51
  :step-id="selectedStep.id"
@@ -1,14 +1,12 @@
1
1
  <template>
2
2
  <div class="nfs-container">
3
- <span class="nfs-container__desc">{{ stepSubTitle }}</span>
4
-
5
3
  <common-wizards-datastore-add-nfs-version
6
- v-show="props.stepPosition === 1"
4
+ v-show="props.stepId === 4"
7
5
  v-model:version="nfsVersion"
8
6
  />
9
7
 
10
8
  <common-wizards-datastore-add-nfs-configuration
11
- v-show="props.stepPosition === 2"
9
+ v-show="props.stepId === 5"
12
10
  :mode="props.mode"
13
11
  :nfs-version="nfsVersion"
14
12
  :nfs-configuration-submit="nfsConfigurationSubmit"
@@ -39,11 +37,10 @@ import {
39
37
  UI_T_WizardDatastoreMode,
40
38
  } from '~/components/common/wizards/datastore/add/lib/models/types'
41
39
  import { UI_I_ConfigurationSendDataNfs } from '~/components/common/wizards/datastore/add/nfs/configuration/lib/models/interfaces'
42
- import { subTitleFunc } from '~/components/common/wizards/datastore/add/lib/config/stepItems'
43
40
 
44
41
  const props = defineProps<{
45
42
  mode: UI_T_WizardDatastoreMode
46
- stepPosition: number
43
+ stepId: number
47
44
  datastoreType: UI_T_DatastoreType
48
45
  nfsConfigurationSubmit: number
49
46
  hostAccessibilitySubmit: number
@@ -59,16 +56,6 @@ const localization = computed<UI_I_Localization>(() => useLocal())
59
56
 
60
57
  const nfsVersion = ref<UI_T_NfsType>('nfs-3')
61
58
 
62
- const stepSubTitle = computed<string>(() => {
63
- const { datastoreType, stepPosition } = props
64
- return subTitleFunc(
65
- localization.value,
66
- datastoreType,
67
- stepPosition,
68
- nfsVersion.value
69
- )
70
- })
71
-
72
59
  // const showHostAccessibility = computed<boolean>(() => {
73
60
  // return (
74
61
  // (props.stepPosition === 4 && nfsVersion.value === 'nfs-4.1') ||
@@ -76,7 +63,7 @@ const stepSubTitle = computed<string>(() => {
76
63
  // )
77
64
  // })
78
65
  const showHostAccessibility = computed<boolean>(() => {
79
- return props.mode === 'sphere' && props.stepPosition === 3
66
+ return props.mode === 'sphere' && props.stepId === 6
80
67
  })
81
68
 
82
69
  watch(nfsVersion, (newValue: UI_T_NfsType) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.420",
4
+ "version": "1.3.421",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",