bfg-common 1.5.284 → 1.5.285
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.
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
v-if="isNewView"
|
|
4
4
|
v-model="formModel"
|
|
5
5
|
v-model:is-show-info-alert="isShowAlertInfo"
|
|
6
|
-
:
|
|
6
|
+
:selected-host-name="props.selectedNode?.name"
|
|
7
7
|
:messages-fields="props.messagesFields"
|
|
8
8
|
:host-id="props.hostId"
|
|
9
9
|
:lun-disks-data="lunDisksData"
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
v-else
|
|
21
21
|
v-model="formModel"
|
|
22
22
|
v-model:is-show-info-alert="isShowAlertInfo"
|
|
23
|
-
:project="props.project"
|
|
24
23
|
:alert-messages="props.alertMessages"
|
|
25
24
|
:messages-fields="props.messagesFields"
|
|
26
25
|
:host-id="props.hostId"
|
|
@@ -51,6 +50,7 @@ import type {
|
|
|
51
50
|
UI_I_SelectHostOptions,
|
|
52
51
|
} from '~/components/common/wizards/datastore/add/steps/nameAndDevice/lib/models/interfaces'
|
|
53
52
|
import type { UI_I_ErrorFields } from '~/components/atoms/wizard/lib/models/interfaces'
|
|
53
|
+
import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
|
|
54
54
|
import type { UI_I_CompatibleHosts } from '~/components/common/wizards/datastore/add/steps/hostAccessibility/table/lib/models/interfaces'
|
|
55
55
|
import type { UI_I_CreateDatastoreForm } from '~/components/common/wizards/datastore/add/lib/models/interfaces'
|
|
56
56
|
import type { UI_I_CreateStorageLunDisks } from '~/components/common/wizards/datastore/add/steps/nameAndDevice/table/lib/models/interfaces'
|
|
@@ -59,6 +59,7 @@ import { hostsOptionsFunc } from '~/components/common/wizards/datastore/add/step
|
|
|
59
59
|
const formModel = defineModel<UI_I_CreateDatastoreForm>({ required: true })
|
|
60
60
|
const props = defineProps<{
|
|
61
61
|
project: UI_T_Project
|
|
62
|
+
selectedNode?: UI_I_TreeNode // Используется только для нового интерфейса, когда открываем визард на хосте
|
|
62
63
|
alertMessages: string[]
|
|
63
64
|
messagesFields: UI_I_ArbitraryObject<UI_I_ErrorFields>
|
|
64
65
|
hosts?: UI_I_CompatibleHosts | undefined
|
|
@@ -116,7 +117,7 @@ const loading = computed<boolean>(() =>
|
|
|
116
117
|
$store.getters['storage/getLoading']('datastoreHosts')
|
|
117
118
|
)
|
|
118
119
|
const lunDisksData = computed<UI_I_CreateStorageLunDisks | null>(() => {
|
|
119
|
-
if(!formModel.value.hosts[0] && props.project === 'sphere') return null
|
|
120
|
+
if (!formModel.value.hosts[0] && props.project === 'sphere') return null
|
|
120
121
|
return $store.getters['storage/getNewDatastoreHosts']
|
|
121
122
|
})
|
|
122
123
|
|
|
@@ -58,6 +58,11 @@
|
|
|
58
58
|
@change="onSelectHost"
|
|
59
59
|
/>
|
|
60
60
|
</div>
|
|
61
|
+
|
|
62
|
+
<div v-else class="row__host-name">
|
|
63
|
+
<span class="icon vsphere-icon-host" />
|
|
64
|
+
{{ props.selectedHostName }}
|
|
65
|
+
</div>
|
|
61
66
|
</div>
|
|
62
67
|
|
|
63
68
|
<div class="name-and-device__disk-list">
|
|
@@ -90,6 +95,7 @@ const isShowInfoAlert = defineModel<boolean>('isShowInfoAlert', {
|
|
|
90
95
|
required: true,
|
|
91
96
|
})
|
|
92
97
|
const props = defineProps<{
|
|
98
|
+
selectedHostName: string
|
|
93
99
|
lunDisksData: UI_I_CreateStorageLunDisks
|
|
94
100
|
hostOptions: UI_I_SelectHostOptions[]
|
|
95
101
|
alertMessages: string[]
|
|
@@ -201,6 +207,19 @@ const onSelectHost = (event: string): void => {
|
|
|
201
207
|
letter-spacing: 0;
|
|
202
208
|
vertical-align: middle;
|
|
203
209
|
}
|
|
210
|
+
&__host-name {
|
|
211
|
+
font-family: 'Inter', sans-serif;
|
|
212
|
+
display: flex;
|
|
213
|
+
align-items: center;
|
|
214
|
+
column-gap: 8px;
|
|
215
|
+
color: var(--wizard-content-value);
|
|
216
|
+
font-size: 13px;
|
|
217
|
+
font-weight: 400;
|
|
218
|
+
.icon {
|
|
219
|
+
width: 20px;
|
|
220
|
+
height: 20px;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
204
223
|
}
|
|
205
224
|
}
|
|
206
225
|
</style>
|