bfg-common 1.5.341 → 1.5.342
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.
- package/components/common/backup/storage/actions/add/Add.vue +1 -1
- package/components/common/backup/storage/actions/add/New.vue +0 -1
- package/components/common/backup/storage/actions/add/Old.vue +0 -1
- package/components/common/backup/storage/actions/add/lib/config/createDatastore.ts +2 -5
- package/components/common/backup/storage/actions/add/steps/typeMode/TypeMode.vue +1 -3
- package/components/common/backup/storage/actions/add/steps/typeMode/lib/config/typeOptions.ts +2 -17
- package/package.json +1 -1
@@ -90,7 +90,7 @@ const selectedScheme = computed<number[]>(() => wizard.selectedScheme.value)
|
|
90
90
|
const alertMessages = computed<string[][]>(() => wizard.alertMessages.value)
|
91
91
|
|
92
92
|
const form = ref<UI_I_CreateDatastoreForm>(
|
93
|
-
useDeepCopy(datastoreDefaultFormFunc(
|
93
|
+
useDeepCopy(datastoreDefaultFormFunc())
|
94
94
|
)
|
95
95
|
|
96
96
|
const validationFunc = async (
|
@@ -39,7 +39,6 @@
|
|
39
39
|
<common-backup-storage-actions-add-steps-type-mode
|
40
40
|
v-if="selectedStep.id === dynamicSteps.type"
|
41
41
|
v-model="formModelLocal.type_code"
|
42
|
-
:project="props.project"
|
43
42
|
:updater-hide-all-help-popups="updaterHideAllHelpPopups"
|
44
43
|
@hide-all-help-popups="isShowFirstStepHelp = false"
|
45
44
|
/>
|
@@ -1,13 +1,10 @@
|
|
1
|
-
import type {UI_T_Project} from "~/lib/models/types";
|
2
1
|
import type { UI_I_CreateDatastoreForm } from '~/components/common/backup/storage/actions/add/lib/models/interfaces'
|
3
2
|
|
4
|
-
export const datastoreDefaultFormFunc = (
|
5
|
-
project: UI_T_Project
|
6
|
-
): UI_I_CreateDatastoreForm => {
|
3
|
+
export const datastoreDefaultFormFunc = (): UI_I_CreateDatastoreForm => {
|
7
4
|
return {
|
8
5
|
name: 'BackupStorage',
|
9
6
|
version: 4.1,
|
10
|
-
type_code:
|
7
|
+
type_code: 2,
|
11
8
|
readonly: false,
|
12
9
|
server: '',
|
13
10
|
folder: '',
|
@@ -16,13 +16,11 @@
|
|
16
16
|
|
17
17
|
<script lang="ts" setup>
|
18
18
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
19
|
-
import type { UI_T_Project } from '~/lib/models/types'
|
20
19
|
import type { UI_I_RadioOption } from '~/components/common/select/radio/lib/models/interfaces'
|
21
20
|
import { datastoreTypesFunc } from '~/components/common/backup/storage/actions/add/steps/typeMode/lib/config/typeOptions'
|
22
21
|
|
23
22
|
const formDatastoreTypeMode = defineModel<number>({ required: true })
|
24
23
|
const props = defineProps<{
|
25
|
-
project: UI_T_Project
|
26
24
|
updaterHideAllHelpPopups: number
|
27
25
|
}>()
|
28
26
|
const emits = defineEmits<{
|
@@ -35,7 +33,7 @@ const { $store }: any = useNuxtApp()
|
|
35
33
|
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
36
34
|
|
37
35
|
const datastoreTypeOptions = ref<UI_I_RadioOption[]>(
|
38
|
-
datastoreTypesFunc(localization.value
|
36
|
+
datastoreTypesFunc(localization.value)
|
39
37
|
)
|
40
38
|
</script>
|
41
39
|
|
package/components/common/backup/storage/actions/add/steps/typeMode/lib/config/typeOptions.ts
CHANGED
@@ -1,21 +1,10 @@
|
|
1
1
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
2
|
-
import type {UI_T_Project} from "~/lib/models/types";
|
3
2
|
import type { UI_I_RadioOption } from '~/components/common/select/radio/lib/models/interfaces'
|
4
3
|
|
5
4
|
export const datastoreTypesFunc = (
|
6
|
-
localization: UI_I_Localization
|
7
|
-
project: UI_T_Project
|
5
|
+
localization: UI_I_Localization
|
8
6
|
): UI_I_RadioOption[] => {
|
9
|
-
|
10
|
-
{
|
11
|
-
label: localization.common.localStorage,
|
12
|
-
value: 1,
|
13
|
-
disabled: false,
|
14
|
-
description: localization.common.localDesc,
|
15
|
-
isTooltip: false,
|
16
|
-
tooltipContent: localization.common.localStorageHelpDesc,
|
17
|
-
testId: 'datastore-type-local',
|
18
|
-
},
|
7
|
+
return [
|
19
8
|
{
|
20
9
|
label: localization.common.nfs,
|
21
10
|
value: 2,
|
@@ -44,8 +33,4 @@ export const datastoreTypesFunc = (
|
|
44
33
|
testId: 'datastore-type-shared-storm',
|
45
34
|
},
|
46
35
|
]
|
47
|
-
|
48
|
-
if(project === 'procurator') types.shift()
|
49
|
-
|
50
|
-
return types
|
51
36
|
}
|