bfg-common 1.3.415 → 1.3.416
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.
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
</div>
|
|
25
25
|
|
|
26
26
|
<common-select-radio-group
|
|
27
|
-
v-model="
|
|
27
|
+
v-model="selectedDatastoreTypeLocal"
|
|
28
28
|
:options="datastoreTypes"
|
|
29
29
|
/>
|
|
30
30
|
</section>
|
|
@@ -34,30 +34,21 @@
|
|
|
34
34
|
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
35
35
|
import { UI_T_Project } from '~/lib/models/types'
|
|
36
36
|
import { UI_I_RadioOption } from '~/components/common/select/radio/lib/models/interfaces'
|
|
37
|
+
import { UI_T_DatastoreType } from '~/components/common/wizards/datastore/add/lib/models/types'
|
|
37
38
|
import { datastoreTypesFunc } from '~/components/common/wizards/datastore/add/types/lib/config/typeOptions'
|
|
38
39
|
|
|
39
40
|
const props = defineProps<{
|
|
40
41
|
project: UI_T_Project
|
|
41
|
-
type: string
|
|
42
|
-
}>()
|
|
43
|
-
const emits = defineEmits<{
|
|
44
|
-
(event: 'update:type', value: string): void
|
|
45
42
|
}>()
|
|
43
|
+
const selectedDatastoreTypeLocal =
|
|
44
|
+
defineModel<UI_T_DatastoreType>('datastore-type')
|
|
45
|
+
|
|
46
46
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
47
47
|
|
|
48
48
|
const datastoreTypes = ref<UI_I_RadioOption[]>(
|
|
49
49
|
datastoreTypesFunc(localization.value, props.project)
|
|
50
50
|
)
|
|
51
51
|
|
|
52
|
-
const selectedType = computed<string>({
|
|
53
|
-
get() {
|
|
54
|
-
return props.type
|
|
55
|
-
},
|
|
56
|
-
set(newValue) {
|
|
57
|
-
emits('update:type', newValue)
|
|
58
|
-
},
|
|
59
|
-
})
|
|
60
|
-
|
|
61
52
|
const isShowTypeHelp = ref<boolean>(false)
|
|
62
53
|
</script>
|
|
63
54
|
|
|
@@ -13,15 +13,16 @@
|
|
|
13
13
|
@submit="onFinish"
|
|
14
14
|
>
|
|
15
15
|
<template #modalBody="{ selectedStep }">
|
|
16
|
+
{{ datastoreType }}
|
|
16
17
|
<common-wizards-datastore-add-types
|
|
17
|
-
v-
|
|
18
|
-
v-model:type="datastoreType"
|
|
19
|
-
:project="props.
|
|
18
|
+
v-if="selectedStep.id === 0"
|
|
19
|
+
v-model:datastore-type="datastoreType"
|
|
20
|
+
:project="props.project"
|
|
20
21
|
/>
|
|
21
22
|
|
|
22
23
|
<common-wizards-datastore-add-local
|
|
23
24
|
v-show="datastoreType === 'local' && !isShowCompleteBlock"
|
|
24
|
-
:mode="props.
|
|
25
|
+
:mode="props.project"
|
|
25
26
|
:step-position="stepPosition"
|
|
26
27
|
:datastore-type="datastoreType"
|
|
27
28
|
:local-create-name-submit="localCreateNameSubmit"
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
|
|
35
36
|
<common-wizards-datastore-add-shared-storm
|
|
36
37
|
v-show="datastoreType === 'shared-storm' && !isShowCompleteBlock"
|
|
37
|
-
:mode="props.
|
|
38
|
+
:mode="props.project"
|
|
38
39
|
:step-position="stepPosition"
|
|
39
40
|
:datastore-type="datastoreType"
|
|
40
41
|
:device-selection-submit="deviceSelectionSubmit"
|
|
@@ -48,7 +49,7 @@
|
|
|
48
49
|
|
|
49
50
|
<common-wizards-datastore-add-nfs
|
|
50
51
|
v-show="datastoreType === 'nfs' && !isShowCompleteBlock"
|
|
51
|
-
:mode="props.
|
|
52
|
+
:mode="props.project"
|
|
52
53
|
:step-position="stepPosition"
|
|
53
54
|
:datastore-type="datastoreType"
|
|
54
55
|
:nfs-configuration-submit="nfsConfigurationSubmit"
|
|
@@ -96,8 +97,7 @@ import {
|
|
|
96
97
|
import { constructDataReadyViewFunc } from '~/components/common/wizards/datastore/add/readyComplete/lib/config/propertiesDetails'
|
|
97
98
|
|
|
98
99
|
const props = defineProps<{
|
|
99
|
-
|
|
100
|
-
mode: UI_T_Project
|
|
100
|
+
project: UI_T_Project
|
|
101
101
|
finishFunc: (
|
|
102
102
|
datastoreForm: UI_I_CreateDatastoreForm,
|
|
103
103
|
datastoreType: UI_T_DatastoreType,
|
|
@@ -126,7 +126,7 @@ const alertMessages = computed<string[][]>(() => wizard.alertMessages.value)
|
|
|
126
126
|
|
|
127
127
|
const loading = ref<boolean>(false)
|
|
128
128
|
const datastoreType = ref<UI_T_DatastoreType>(
|
|
129
|
-
props.
|
|
129
|
+
props.project === 'procurator' ? 'local' : 'shared-storm'
|
|
130
130
|
)
|
|
131
131
|
const nfsVersion = ref<UI_T_NfsType>('nfs-3')
|
|
132
132
|
|
|
@@ -271,7 +271,9 @@ const deviceSelectionSubmit = ref<number>(0)
|
|
|
271
271
|
// return true
|
|
272
272
|
// }
|
|
273
273
|
|
|
274
|
-
const isWizardModeForSphere = computed<boolean>(
|
|
274
|
+
const isWizardModeForSphere = computed<boolean>(
|
|
275
|
+
() => props.project === 'sphere'
|
|
276
|
+
)
|
|
275
277
|
|
|
276
278
|
const onSaveNameAndNextLocal = (event: any): void => {
|
|
277
279
|
const { local } = datastoreForm.value
|
|
@@ -344,12 +346,12 @@ const isShowCompleteBlock = computed<boolean>(() => {
|
|
|
344
346
|
|
|
345
347
|
const sharesStep =
|
|
346
348
|
datastoreType.value === 'shared-storm' &&
|
|
347
|
-
(props.
|
|
349
|
+
(props.project === 'procurator'
|
|
348
350
|
? stepPosition.value === 3
|
|
349
351
|
: stepPosition.value === 2)
|
|
350
352
|
|
|
351
353
|
let nfsFirst
|
|
352
|
-
if (props.
|
|
354
|
+
if (props.project === 'procurator') {
|
|
353
355
|
nfsFirst =
|
|
354
356
|
datastoreType.value === 'nfs' &&
|
|
355
357
|
nfsVersion.value === 'nfs-3' &&
|
|
@@ -362,7 +364,7 @@ const isShowCompleteBlock = computed<boolean>(() => {
|
|
|
362
364
|
}
|
|
363
365
|
|
|
364
366
|
let nfsSecond
|
|
365
|
-
if (props.
|
|
367
|
+
if (props.project === 'procurator') {
|
|
366
368
|
nfsSecond =
|
|
367
369
|
datastoreType.value === 'nfs' &&
|
|
368
370
|
nfsVersion.value === 'nfs-4.1' &&
|