bfg-common 1.3.415 → 1.3.417
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.
|
@@ -13,15 +13,16 @@
|
|
|
13
13
|
@submit="onFinish"
|
|
14
14
|
>
|
|
15
15
|
<template #modalBody="{ selectedStep }">
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
v-
|
|
19
|
-
:
|
|
16
|
+
{{ datastoreType }}
|
|
17
|
+
<common-wizards-datastore-new-add-types
|
|
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
|
|
|
@@ -173,6 +173,20 @@ const validationFunc = async (
|
|
|
173
173
|
const onChangeSteps = async (value: UI_I_WizardStep[]): Promise<void> =>
|
|
174
174
|
wizard.changeSteps(value, validationFunc)
|
|
175
175
|
|
|
176
|
+
// Choosing Scheme
|
|
177
|
+
watch(
|
|
178
|
+
[datastoreType, props.project],
|
|
179
|
+
(newValues) => {
|
|
180
|
+
console.log(newValues, 'newValues')
|
|
181
|
+
const [type, project] = newValues
|
|
182
|
+
console.log(type)
|
|
183
|
+
console.log(project)
|
|
184
|
+
|
|
185
|
+
// wizard.changeScheme(4)
|
|
186
|
+
},
|
|
187
|
+
{ deep: true, immediate: true }
|
|
188
|
+
)
|
|
189
|
+
|
|
176
190
|
// const stepItems = computed<UI_I_VerticalStepItem[]>(() =>
|
|
177
191
|
// stepItemsFunc(localization.value, datastoreType.value, props.mode)
|
|
178
192
|
// )
|
|
@@ -271,7 +285,9 @@ const deviceSelectionSubmit = ref<number>(0)
|
|
|
271
285
|
// return true
|
|
272
286
|
// }
|
|
273
287
|
|
|
274
|
-
const isWizardModeForSphere = computed<boolean>(
|
|
288
|
+
const isWizardModeForSphere = computed<boolean>(
|
|
289
|
+
() => props.project === 'sphere'
|
|
290
|
+
)
|
|
275
291
|
|
|
276
292
|
const onSaveNameAndNextLocal = (event: any): void => {
|
|
277
293
|
const { local } = datastoreForm.value
|
|
@@ -344,12 +360,12 @@ const isShowCompleteBlock = computed<boolean>(() => {
|
|
|
344
360
|
|
|
345
361
|
const sharesStep =
|
|
346
362
|
datastoreType.value === 'shared-storm' &&
|
|
347
|
-
(props.
|
|
363
|
+
(props.project === 'procurator'
|
|
348
364
|
? stepPosition.value === 3
|
|
349
365
|
: stepPosition.value === 2)
|
|
350
366
|
|
|
351
367
|
let nfsFirst
|
|
352
|
-
if (props.
|
|
368
|
+
if (props.project === 'procurator') {
|
|
353
369
|
nfsFirst =
|
|
354
370
|
datastoreType.value === 'nfs' &&
|
|
355
371
|
nfsVersion.value === 'nfs-3' &&
|
|
@@ -362,7 +378,7 @@ const isShowCompleteBlock = computed<boolean>(() => {
|
|
|
362
378
|
}
|
|
363
379
|
|
|
364
380
|
let nfsSecond
|
|
365
|
-
if (props.
|
|
381
|
+
if (props.project === 'procurator') {
|
|
366
382
|
nfsSecond =
|
|
367
383
|
datastoreType.value === 'nfs' &&
|
|
368
384
|
nfsVersion.value === 'nfs-4.1' &&
|
|
@@ -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>('datastoreType')
|
|
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
|
|