bfg-common 1.3.434 → 1.3.435
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.
|
@@ -37,10 +37,13 @@
|
|
|
37
37
|
:project="props.project"
|
|
38
38
|
:step-id="selectedStep.id"
|
|
39
39
|
:datastore-type="datastoreType"
|
|
40
|
+
:alert-messages="alertMessages[selectedStep.id]"
|
|
41
|
+
:messages-fields="selectedStep.fields"
|
|
40
42
|
:device-selection-submit="deviceSelectionSubmit"
|
|
41
43
|
:datacenter-hosts="props.datacenterHosts"
|
|
42
44
|
:is-main-filter="props.isMainFilter"
|
|
43
45
|
:host-id="props.hostId"
|
|
46
|
+
@hide-alert="onHideAlert"
|
|
44
47
|
@loading="(e) => (loading = e)"
|
|
45
48
|
@submit="onSaveAndNextSharedStorm"
|
|
46
49
|
@main-filter="emits('main-filter', $event)"
|
|
@@ -5,12 +5,15 @@
|
|
|
5
5
|
v-model="model"
|
|
6
6
|
v-model:lun-disk="[]"
|
|
7
7
|
:step-id="props.stepId"
|
|
8
|
+
:alert-messages="props.alertMessages"
|
|
9
|
+
:messages-fields="props.messagesFields"
|
|
8
10
|
:device-selection-submit="0"
|
|
9
11
|
:datastore-type="props.datastoreType"
|
|
10
12
|
:project="props.project"
|
|
11
13
|
:datacenter-hosts="props.datacenterHosts"
|
|
12
14
|
:is-main-filter="props.isMainFilter"
|
|
13
15
|
:host-id="props.hostId"
|
|
16
|
+
@hide-alert="(e) => emits('hide-alert', e)"
|
|
14
17
|
@loading="(e) => emits('loading', e)"
|
|
15
18
|
@main-filter="emits('main-filter', $event)"
|
|
16
19
|
/>
|
|
@@ -30,21 +33,27 @@
|
|
|
30
33
|
</template>
|
|
31
34
|
|
|
32
35
|
<script lang="ts" setup>
|
|
33
|
-
import {
|
|
36
|
+
import {
|
|
37
|
+
UI_I_Localization,
|
|
38
|
+
UI_I_ArbitraryObject,
|
|
39
|
+
} from '~/lib/models/interfaces'
|
|
34
40
|
import { UI_T_Project } from '~/lib/models/types'
|
|
41
|
+
import type { UI_I_ErrorFields } from '~/components/atoms/wizard/lib/models/interfaces'
|
|
35
42
|
import {
|
|
36
43
|
UI_T_DatastoreType,
|
|
37
44
|
UI_T_VmfsType,
|
|
38
45
|
} from '~/components/common/wizards/datastore/add/lib/models/types'
|
|
39
46
|
import {
|
|
40
47
|
UI_I_SelectHostOptions,
|
|
41
|
-
UI_I_CreateStorageLunDiskItem,
|
|
48
|
+
// UI_I_CreateStorageLunDiskItem,
|
|
42
49
|
} from '~/components/common/wizards/datastore/add/sharedStorm/deviceSelection/lib/models/interfaces'
|
|
43
50
|
|
|
44
51
|
const props = defineProps<{
|
|
45
52
|
project: UI_T_Project
|
|
46
53
|
stepId: number
|
|
47
54
|
datastoreType: UI_T_DatastoreType
|
|
55
|
+
alertMessages: string[]
|
|
56
|
+
messagesFields: UI_I_ArbitraryObject<UI_I_ErrorFields>
|
|
48
57
|
datacenterHosts?: UI_I_SelectHostOptions[]
|
|
49
58
|
isMainFilter?: boolean
|
|
50
59
|
hostId?: string
|
|
@@ -52,6 +61,7 @@ const props = defineProps<{
|
|
|
52
61
|
const model = defineModel<any>()
|
|
53
62
|
const emits = defineEmits<{
|
|
54
63
|
// (event: 'submit', value: { name: string; lunDisk: string[] }): void
|
|
64
|
+
(event: 'hide-alert', value: boolean): void
|
|
55
65
|
(event: 'loading', value: boolean): void
|
|
56
66
|
(event: 'main-filter', value: string): void
|
|
57
67
|
}>()
|
package/components/common/wizards/datastoreNew/add/sharedStorm/deviceSelection/DeviceSelection.vue
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="device-selection">
|
|
3
3
|
<atoms-alert
|
|
4
|
-
v-show="
|
|
4
|
+
v-show="props.alertMessages.length"
|
|
5
5
|
test-id="device-selection-errors"
|
|
6
6
|
status="alert-danger"
|
|
7
|
-
:items="
|
|
8
|
-
@remove="
|
|
7
|
+
:items="props.alertMessages"
|
|
8
|
+
@remove="onHideAlert"
|
|
9
9
|
/>
|
|
10
10
|
|
|
11
11
|
<div class="clr-form-control clr-row">
|
|
@@ -99,7 +99,10 @@
|
|
|
99
99
|
import { UI_T_Project } from '~/lib/models/types'
|
|
100
100
|
import { UI_I_ValidationTouchResult } from '~/lib/models/plugins/validation/interfaces'
|
|
101
101
|
// import { UI_I_SchemaTablePayload } from '~/lib/models/store/interfaces'
|
|
102
|
-
import {
|
|
102
|
+
import {
|
|
103
|
+
UI_I_Localization,
|
|
104
|
+
UI_I_ArbitraryObject,
|
|
105
|
+
} from '~/lib/models/interfaces'
|
|
103
106
|
import {
|
|
104
107
|
API_UI_I_DataTable,
|
|
105
108
|
UI_I_Pagination,
|
|
@@ -112,6 +115,7 @@ import {
|
|
|
112
115
|
UI_I_LunDiskSpherePayload,
|
|
113
116
|
UI_I_SelectHostOptions,
|
|
114
117
|
} from '~/components/common/wizards/datastore/add/sharedStorm/deviceSelection/lib/models/interfaces'
|
|
118
|
+
import type { UI_I_ErrorFields } from '~/components/atoms/wizard/lib/models/interfaces'
|
|
115
119
|
// import { Ui_T_HostSelectedType } from '~/components/common/wizards/datastore/add/sharedStorm/deviceSelection/lib/models/types'
|
|
116
120
|
import { UI_T_DatastoreType } from '~/components/common/wizards/datastoreNew/add/lib/models/types'
|
|
117
121
|
import { defaultFormFunc } from '~/components/common/wizards/datastore/add/sharedStorm/deviceSelection/lib/config/defaultForm'
|
|
@@ -121,6 +125,8 @@ import { checkValidityName } from '~/components/common/wizards/datastoreNew/add/
|
|
|
121
125
|
const props = defineProps<{
|
|
122
126
|
project: UI_T_Project
|
|
123
127
|
stepId: number
|
|
128
|
+
alertMessages: string[]
|
|
129
|
+
messagesFields: UI_I_ArbitraryObject<UI_I_ErrorFields>
|
|
124
130
|
deviceSelectionSubmit: number
|
|
125
131
|
lunDisk: UI_I_CreateStorageLunDiskItem[]
|
|
126
132
|
datastoreType: UI_T_DatastoreType
|
|
@@ -131,6 +137,7 @@ const props = defineProps<{
|
|
|
131
137
|
const model = defineModel<any>()
|
|
132
138
|
const emits = defineEmits<{
|
|
133
139
|
(event: 'loading', value: boolean): void
|
|
140
|
+
(event: 'hide-alert', value: number): void
|
|
134
141
|
(event: 'submit', value: UI_I_DeviceSelectionSendData): void
|
|
135
142
|
(event: 'main-filter', value: string): void
|
|
136
143
|
}>()
|
|
@@ -183,7 +190,7 @@ const pagination = ref<UI_I_Pagination>({
|
|
|
183
190
|
})
|
|
184
191
|
const sort = ref<string | null>(null)
|
|
185
192
|
|
|
186
|
-
const selectedLunDisk = ref<number[]>([])
|
|
193
|
+
// const selectedLunDisk = ref<number[]>([])
|
|
187
194
|
|
|
188
195
|
const updatePagination = (event: UI_I_Pagination): void => {
|
|
189
196
|
pagination.value = event
|
|
@@ -238,9 +245,6 @@ const resetValidation = (): void => {
|
|
|
238
245
|
const removeInputValidation = (): void => {
|
|
239
246
|
formErrors.value = []
|
|
240
247
|
}
|
|
241
|
-
const onCloseAlertDanger = (): void => {
|
|
242
|
-
errors.value = []
|
|
243
|
-
}
|
|
244
248
|
const validatePropertiesForSphere = (): boolean => {
|
|
245
249
|
if (props.datastoreType === 'local') {
|
|
246
250
|
return !selectedHost.value
|
|
@@ -369,9 +373,14 @@ const initLunDisksDataTable = async (): Promise<void> => {
|
|
|
369
373
|
} as UI_I_DataTableQuery)
|
|
370
374
|
}
|
|
371
375
|
|
|
372
|
-
if (props.project === 'procurator'
|
|
376
|
+
if (props.project === 'procurator') {
|
|
377
|
+
// && props.stepId === 2
|
|
373
378
|
initLunDisksDataTable()
|
|
374
379
|
}
|
|
380
|
+
|
|
381
|
+
const onHideAlert = (): void => {
|
|
382
|
+
emits('hide-alert', props.stepId)
|
|
383
|
+
}
|
|
375
384
|
</script>
|
|
376
385
|
|
|
377
386
|
<style lang="scss" scoped>
|