bfg-common 1.6.30 → 1.6.32
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/assets/localization/local_be.json +245 -6
- package/assets/localization/local_en.json +252 -13
- package/assets/localization/local_hy.json +246 -7
- package/assets/localization/local_kk.json +245 -6
- package/assets/localization/local_ru.json +252 -13
- package/assets/localization/local_zh.json +245 -6
- package/assets/scss/common/theme.scss +2 -2
- package/components/atoms/stack/StackBlock.vue +1 -1
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +1 -1
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +0 -1
- package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +1 -0
- package/components/common/certificate/CertificateInfo.vue +7 -1
- package/components/common/configure/physicalAdapters/PhysicalAdapters.vue +6 -0
- package/components/common/configure/physicalAdapters/PhysicalAdaptersNew.vue +219 -192
- package/components/common/configure/physicalAdapters/PhysicalAdaptersOld.vue +6 -4
- package/components/common/configure/physicalAdapters/buttons/Buttons.vue +1 -0
- package/components/common/configure/physicalAdapters/modals/edit/Edit.vue +26 -1
- package/components/common/configure/physicalAdapters/modals/edit/EditNew.vue +30 -1
- package/components/common/configure/physicalAdapters/modals/edit/lib/models/interfaces.ts +5 -0
- package/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations.ts +19 -0
- package/components/common/configure/physicalAdapters/tableView/TableViewNew.vue +12 -1
- package/components/common/configure/physicalAdapters/tableView/lib/config/physicalAdaptersTableConfigNew.ts +21 -21
- package/components/common/configure/physicalAdapters/tableView/lib/config/settings.ts +12 -5
- package/components/common/configure/physicalAdapters/tableView/lib/models/interfaces.ts +4 -1
- package/components/common/diagramMain/DiagramMain.vue +6 -0
- package/components/common/diagramMain/modals/Modals.vue +4 -0
- package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +2 -2
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +1 -1
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +2 -2
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +1 -1
- package/components/common/layout/theHeader/ThemeSwitch.vue +1 -1
- package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +8 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/New.vue +4 -0
- package/components/common/layout/theHeader/userMenu/modals/preferences/Old.vue +9 -2
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +12 -8
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +7 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/config/consoleOptions.ts +8 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +9 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/Old.vue +5 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +9 -6
- package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +3 -1
- package/components/common/monitor/advanced/table/lib/models/interfaces.ts +13 -13
- package/components/common/monitor/advanced/table/lib/models/types.ts +7 -7
- package/components/common/monitor/advanced/table/tableNew/TableNew.vue +93 -93
- package/components/common/monitor/advanced/table/tableNew/lib/config/options.ts +109 -109
- package/components/common/monitor/advanced/table/tableNew/lib/utils/constructBody.ts +25 -25
- package/components/common/monitor/advanced/table/tableOld/TableOld.vue +93 -93
- package/components/common/monitor/advanced/table/tableOld/lib/config/performanceDatatable.ts +125 -125
- package/components/common/monitor/lib/utils/local_be.json +702 -702
- package/components/common/monitor/lib/utils/local_en.json +702 -702
- package/components/common/monitor/lib/utils/local_hy.json +702 -702
- package/components/common/monitor/lib/utils/local_kk.json +702 -702
- package/components/common/monitor/lib/utils/local_ru.json +702 -702
- package/components/common/monitor/lib/utils/local_zh.json +702 -702
- package/components/common/monitor/utilization/lib/utils/index.ts +33 -33
- package/components/common/noDataProvided/NoDataProvidedNew.vue +1 -1
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/new/lib/config/table.ts +4 -4
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/old/lib/config/table.ts +4 -4
- package/components/common/pages/hardwareHealth/HardwareHealthNew.vue +1 -1
- package/components/common/pages/hardwareHealth/historyTestimony/GraphNew.vue +1 -1
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/ActionsNew.vue +1 -1
- package/components/common/pages/scheduledTasks/table/lib/models/enums.ts +9 -0
- package/components/common/pages/scheduledTasks/table/new/New.vue +12 -10
- package/components/common/pages/tasks/Tasks.vue +4 -1
- package/components/common/pages/tasks/table/Table.vue +24 -22
- package/components/common/split/vertical/New.vue +42 -8
- package/components/common/split/vertical/Old.vue +31 -2
- package/components/common/split/vertical/Vertical.vue +4 -0
- package/components/common/vm/actions/add/New.vue +21 -6
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDrive.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/New.vue +5 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/New.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/New.vue +2 -0
- package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +13 -15
- package/components/common/vm/actions/confirm/Confirm.vue +3 -0
- package/components/common/vm/snapshots/DetailView.vue +6 -6
- package/components/common/wizards/datastore/add/New.vue +6 -0
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/New.vue +1 -1
- package/components/common/wizards/network/add/Add.vue +13 -2
- package/components/common/wizards/network/add/AddNew.vue +22 -26
- package/components/common/wizards/network/add/lib/config/initialData.ts +4 -4
- package/components/common/wizards/network/add/lib/utils/utils.ts +1 -1
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +2 -8
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +2 -8
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +10 -3
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +5 -1
- package/components/common/wizards/network/add/validations/common.ts +1 -1
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/New.vue +31 -13
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/clusterTable.ts +340 -0
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/hostTable.ts +3 -1
- package/components/common/wizards/vm/migrate/steps/selectStorage/New.vue +5 -4
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/New.vue +4 -0
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/New.vue +3 -1
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/lib/config/diskTable.ts +8 -3
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/old/lib/config/diskTable.ts +7 -1
- package/lib/models/store/tasks/enums.ts +3 -0
- package/lib/models/store/tasks/types.ts +7 -6
- package/package.json +2 -2
- package/store/tasks/actions.ts +26 -8
- package/store/tasks/mappers/recentTasks.ts +1 -0
|
@@ -11,6 +11,14 @@
|
|
|
11
11
|
@submit="emits('send-edit-data')"
|
|
12
12
|
>
|
|
13
13
|
<template #content>
|
|
14
|
+
<ui-alert
|
|
15
|
+
v-if="!!errors.alert"
|
|
16
|
+
:messages="[errors.alert]"
|
|
17
|
+
test-id="virtual-functions-alert"
|
|
18
|
+
size="md"
|
|
19
|
+
class="virtual-functions-alert"
|
|
20
|
+
@hide="onHideAlert"
|
|
21
|
+
/>
|
|
14
22
|
<div class="form-group">
|
|
15
23
|
<div class="form-group-speed">
|
|
16
24
|
<label class="config-speed-title title">
|
|
@@ -30,7 +38,7 @@
|
|
|
30
38
|
<div v-if="props.hasSpeed" class="form-group-sr">
|
|
31
39
|
<ui-line margin="24px 0 16px" />
|
|
32
40
|
<label class="sr-title title">
|
|
33
|
-
{{ localization.common.
|
|
41
|
+
{{ localization.common.srIov }}
|
|
34
42
|
</label>
|
|
35
43
|
<p class="sr-description">
|
|
36
44
|
{{ localization.common.srIovDescription }}
|
|
@@ -59,6 +67,7 @@
|
|
|
59
67
|
:placeholder="localization.common.virtualFunctions"
|
|
60
68
|
size="md"
|
|
61
69
|
type="number"
|
|
70
|
+
:error="sriovStatus ? errors.field : ''"
|
|
62
71
|
:disabled="!sriovStatus"
|
|
63
72
|
/>
|
|
64
73
|
</div>
|
|
@@ -85,6 +94,8 @@ import type { UI_I_ModalTexts } from '~/node_modules/bfg-uikit/components/ui/mod
|
|
|
85
94
|
import type { UI_I_OptionItem } from '~/node_modules/bfg-common/components/atoms/lib/models/interfaces'
|
|
86
95
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
87
96
|
import type { UI_I_SwitchAdapterItem } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
97
|
+
import type { UI_I_SrOptionError } from '~/components/common/configure/physicalAdapters/modals/edit/lib/models/interfaces'
|
|
98
|
+
import { vfNumberValidationFunc } from '~/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations'
|
|
88
99
|
|
|
89
100
|
const props = defineProps<{
|
|
90
101
|
hasSpeed: boolean
|
|
@@ -109,6 +120,7 @@ const modalTexts = ref<UI_I_ModalTexts>({
|
|
|
109
120
|
const configSpeed = defineModel<string>('config-speed')
|
|
110
121
|
const sriovStatus = defineModel<boolean>('status')
|
|
111
122
|
const numberOfFunctions = defineModel<number>('number-of-functions')
|
|
123
|
+
const errors = defineModel<UI_I_SrOptionError>('errors')
|
|
112
124
|
|
|
113
125
|
const status = computed({
|
|
114
126
|
get() {
|
|
@@ -118,6 +130,19 @@ const status = computed({
|
|
|
118
130
|
sriovStatus.value = newValue === '1'
|
|
119
131
|
},
|
|
120
132
|
})
|
|
133
|
+
|
|
134
|
+
watch(
|
|
135
|
+
numberOfFunctions,
|
|
136
|
+
(newValue: number): void => {
|
|
137
|
+
errors.value.field = vfNumberValidationFunc(newValue, localization.value)
|
|
138
|
+
errors.value.alert = ''
|
|
139
|
+
},
|
|
140
|
+
{ immediate: true }
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
const onHideAlert = (): void => {
|
|
144
|
+
errors.value.alert = ''
|
|
145
|
+
}
|
|
121
146
|
</script>
|
|
122
147
|
|
|
123
148
|
<style scoped lang="scss">
|
|
@@ -200,4 +225,8 @@ const status = computed({
|
|
|
200
225
|
}
|
|
201
226
|
}
|
|
202
227
|
}
|
|
228
|
+
|
|
229
|
+
.virtual-functions-alert {
|
|
230
|
+
margin: 8px 32px;
|
|
231
|
+
}
|
|
203
232
|
</style>
|
package/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
|
|
3
|
+
export const vfNumberValidationFunc = (
|
|
4
|
+
vfNumber: number,
|
|
5
|
+
localization: UI_I_Localization,
|
|
6
|
+
isAlert = false
|
|
7
|
+
): string => {
|
|
8
|
+
if (vfNumber !== 0 && !vfNumber) {
|
|
9
|
+
return isAlert
|
|
10
|
+
? localization.inventoryConfigure.vfRequiredMessage
|
|
11
|
+
: localization.common.fieldRequired
|
|
12
|
+
} else if (vfNumber < 1 || vfNumber > 63) {
|
|
13
|
+
return isAlert
|
|
14
|
+
? localization.inventoryConfigure.vfNotNegativeMessage
|
|
15
|
+
: localization.inventoryConfigure.vfNotNegativeMessage
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
return ''
|
|
19
|
+
}
|
|
@@ -170,7 +170,9 @@ const actions = computed<UI_I_ButtonsGroup>(() => [
|
|
|
170
170
|
value: 'edit',
|
|
171
171
|
testId: 'edit-physical-adapted',
|
|
172
172
|
id: 'edit-physical-adapted',
|
|
173
|
+
iconName: 'edit',
|
|
173
174
|
disabled: !props.hasSelectedAdapter,
|
|
175
|
+
development: true,
|
|
174
176
|
},
|
|
175
177
|
])
|
|
176
178
|
|
|
@@ -247,6 +249,11 @@ const onShowEditModal = (id: string): void => {
|
|
|
247
249
|
:deep(.table-container) {
|
|
248
250
|
height: 100%;
|
|
249
251
|
grid-template-rows: min-content auto min-content;
|
|
252
|
+
|
|
253
|
+
.title-container {
|
|
254
|
+
margin-right: 16px;
|
|
255
|
+
}
|
|
256
|
+
|
|
250
257
|
&.full-width-search {
|
|
251
258
|
grid-template-rows: min-content min-content auto min-content;
|
|
252
259
|
}
|
|
@@ -322,7 +329,7 @@ const onShowEditModal = (id: string): void => {
|
|
|
322
329
|
}
|
|
323
330
|
}
|
|
324
331
|
&-text {
|
|
325
|
-
line-height:
|
|
332
|
+
line-height: 18px;
|
|
326
333
|
}
|
|
327
334
|
}
|
|
328
335
|
|
|
@@ -331,4 +338,8 @@ const onShowEditModal = (id: string): void => {
|
|
|
331
338
|
white-space: nowrap;
|
|
332
339
|
}
|
|
333
340
|
}
|
|
341
|
+
|
|
342
|
+
:deep(.ui-button-group-dots-icon) {
|
|
343
|
+
padding-left: 0;
|
|
344
|
+
}
|
|
334
345
|
</style>
|
|
@@ -8,96 +8,96 @@ import type { UI_I_PhysicalAdapter } from '~/components/common/configure/physica
|
|
|
8
8
|
import { physicalAdaptersTableItemsTuple } from '~/components/common/configure/physicalAdapters/tableView/lib/config/tableKeys'
|
|
9
9
|
|
|
10
10
|
export const getHeaderDataFunc = (
|
|
11
|
-
|
|
11
|
+
localization: UI_I_Localization
|
|
12
12
|
): UI_I_DataTableHeader[] => [
|
|
13
13
|
{
|
|
14
14
|
col: 'col0',
|
|
15
|
-
colName:
|
|
15
|
+
colName: physicalAdaptersTableItemsTuple[0],
|
|
16
16
|
text: localization.common[physicalAdaptersTableItemsTuple[0]],
|
|
17
17
|
isSortable: true,
|
|
18
18
|
sort: 'asc',
|
|
19
19
|
sortColumn: true,
|
|
20
|
-
width: '
|
|
20
|
+
width: '160px',
|
|
21
21
|
show: true,
|
|
22
22
|
filter: true,
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
col: 'col1',
|
|
26
|
-
colName:
|
|
26
|
+
colName: physicalAdaptersTableItemsTuple[1],
|
|
27
27
|
text: localization.common[physicalAdaptersTableItemsTuple[1]],
|
|
28
28
|
isSortable: true,
|
|
29
29
|
sort: 'asc',
|
|
30
|
-
width: '
|
|
30
|
+
width: '200px',
|
|
31
31
|
show: true,
|
|
32
32
|
filter: true,
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
col: 'col2',
|
|
36
|
-
colName:
|
|
36
|
+
colName: physicalAdaptersTableItemsTuple[2],
|
|
37
37
|
text: localization.common[physicalAdaptersTableItemsTuple[2]],
|
|
38
38
|
isSortable: true,
|
|
39
39
|
sort: 'asc',
|
|
40
|
-
width: '
|
|
40
|
+
width: '240px',
|
|
41
41
|
show: true,
|
|
42
42
|
filter: true,
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
col: 'col3',
|
|
46
|
-
colName:
|
|
46
|
+
colName: physicalAdaptersTableItemsTuple[3],
|
|
47
47
|
text: localization.common[physicalAdaptersTableItemsTuple[3]],
|
|
48
48
|
isSortable: true,
|
|
49
49
|
sort: 'asc',
|
|
50
|
-
width: '
|
|
50
|
+
width: '140px',
|
|
51
51
|
show: true,
|
|
52
52
|
filter: true,
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
col: 'col4',
|
|
56
|
-
colName:
|
|
56
|
+
colName: physicalAdaptersTableItemsTuple[4],
|
|
57
57
|
text: localization.common[physicalAdaptersTableItemsTuple[4]],
|
|
58
58
|
isSortable: true,
|
|
59
59
|
sort: 'asc',
|
|
60
|
-
width: '
|
|
60
|
+
width: '176px',
|
|
61
61
|
show: true,
|
|
62
62
|
filter: true,
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
col: 'col5',
|
|
66
|
-
colName:
|
|
66
|
+
colName: physicalAdaptersTableItemsTuple[5],
|
|
67
67
|
text: localization.common[physicalAdaptersTableItemsTuple[5]],
|
|
68
68
|
isSortable: true,
|
|
69
69
|
sort: 'asc',
|
|
70
|
-
width: '
|
|
70
|
+
width: '174px',
|
|
71
71
|
show: true,
|
|
72
72
|
filter: true,
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
col: 'col6',
|
|
76
|
-
colName:
|
|
76
|
+
colName: physicalAdaptersTableItemsTuple[6],
|
|
77
77
|
text: localization.common[physicalAdaptersTableItemsTuple[6]],
|
|
78
78
|
isSortable: true,
|
|
79
79
|
sort: 'asc',
|
|
80
|
-
width: '
|
|
80
|
+
width: '200px',
|
|
81
81
|
show: true,
|
|
82
82
|
filter: true,
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
col: 'col7',
|
|
86
|
-
colName:
|
|
86
|
+
colName: physicalAdaptersTableItemsTuple[7],
|
|
87
87
|
text: localization.common[physicalAdaptersTableItemsTuple[7]],
|
|
88
88
|
isSortable: true,
|
|
89
89
|
sort: 'asc',
|
|
90
|
-
width: '
|
|
90
|
+
width: '200px',
|
|
91
91
|
show: true,
|
|
92
92
|
filter: true,
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
col: 'col8',
|
|
96
|
-
colName:
|
|
96
|
+
colName: physicalAdaptersTableItemsTuple[8],
|
|
97
97
|
text: localization.common[physicalAdaptersTableItemsTuple[8]],
|
|
98
98
|
isSortable: true,
|
|
99
99
|
sort: 'asc',
|
|
100
|
-
width: '
|
|
100
|
+
width: '140px',
|
|
101
101
|
show: true,
|
|
102
102
|
filter: true,
|
|
103
103
|
},
|
|
@@ -131,8 +131,8 @@ export const options: UI_I_DataTableOptions = {
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
export const getBodyDataFunc = (
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
bodyData: UI_I_PhysicalAdapter[],
|
|
135
|
+
selectedRow: number
|
|
136
136
|
): UI_I_DataTableBody[] => {
|
|
137
137
|
return bodyData.map((adapter: UI_I_PhysicalAdapter, index: number) => {
|
|
138
138
|
return {
|
|
@@ -11,22 +11,22 @@ export const adapterViewSettingsModalTabsFunc = (
|
|
|
11
11
|
{
|
|
12
12
|
text: localization.common.all,
|
|
13
13
|
value: 0,
|
|
14
|
-
testId: 'physical-adapter-view-all-settings'
|
|
14
|
+
testId: 'physical-adapter-view-all-settings',
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
text: localization.common.properties,
|
|
18
18
|
value: 1,
|
|
19
|
-
testId: 'physical-adapter-view-properties-setting'
|
|
19
|
+
testId: 'physical-adapter-view-properties-setting',
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
text: localization.common.cdp,
|
|
23
23
|
value: 2,
|
|
24
|
-
testId: 'physical-adapter-view-cdp-setting'
|
|
24
|
+
testId: 'physical-adapter-view-cdp-setting',
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
text: localization.common.lldp,
|
|
28
28
|
value: 3,
|
|
29
|
-
testId: 'physical-adapter-view-lldp-setting'
|
|
29
|
+
testId: 'physical-adapter-view-lldp-setting',
|
|
30
30
|
},
|
|
31
31
|
]
|
|
32
32
|
|
|
@@ -36,6 +36,7 @@ export const adapterViewSettingsFunc = (
|
|
|
36
36
|
): UI_I_ViewSettingsFields[] => {
|
|
37
37
|
return [
|
|
38
38
|
{
|
|
39
|
+
title: localization.common.properties,
|
|
39
40
|
id: 1,
|
|
40
41
|
type: 1,
|
|
41
42
|
rows: [
|
|
@@ -67,6 +68,8 @@ export const adapterViewSettingsFunc = (
|
|
|
67
68
|
value: initialData.carrier
|
|
68
69
|
? localization.common.connected
|
|
69
70
|
: localization.common.disconnected,
|
|
71
|
+
status: true,
|
|
72
|
+
color: initialData.carrier,
|
|
70
73
|
},
|
|
71
74
|
{
|
|
72
75
|
name: localization.common.actualSpeedDuplex,
|
|
@@ -102,7 +105,11 @@ export const adapterViewSettingsFunc = (
|
|
|
102
105
|
rows: [
|
|
103
106
|
{
|
|
104
107
|
name: localization.common.status,
|
|
105
|
-
value: !initialData.srIov
|
|
108
|
+
value: !initialData.srIov
|
|
109
|
+
? localization.common.notSupported
|
|
110
|
+
: localization.common.supported,
|
|
111
|
+
status: true,
|
|
112
|
+
color: initialData.srIov,
|
|
106
113
|
},
|
|
107
114
|
],
|
|
108
115
|
},
|
|
@@ -13,7 +13,10 @@ export interface UI_I_PhysicalAdapter {
|
|
|
13
13
|
|
|
14
14
|
export interface UI_I_ViewSettingsFieldsRow {
|
|
15
15
|
name: string
|
|
16
|
-
value
|
|
16
|
+
value?: string | string[] | undefined
|
|
17
|
+
color?: boolean
|
|
18
|
+
status?: boolean
|
|
19
|
+
icon?: string
|
|
17
20
|
}
|
|
18
21
|
|
|
19
22
|
export interface UI_I_ViewSettingsFields {
|
|
@@ -74,6 +74,8 @@
|
|
|
74
74
|
:selected-switch-id="selectedSwitchId"
|
|
75
75
|
:tcp-stacks="props.tcpStacks"
|
|
76
76
|
:is-networking-loading="props.isNetworkingLoading"
|
|
77
|
+
:is-get-existing-switches-loading="props.isGetExistingSwitchesLoading"
|
|
78
|
+
:is-get-tcp-stack-loading="props.isGetTcpStackLoading"
|
|
77
79
|
:networks-list="props.networksList"
|
|
78
80
|
:is-migrate-adapter-loading="props.isMigrateAdapterLoading"
|
|
79
81
|
:diagrams-data="props.diagramsData"
|
|
@@ -172,6 +174,8 @@ const props = withDefaults(
|
|
|
172
174
|
diagramsData?: UI_I_DiagramData[]
|
|
173
175
|
isManageAdaptersModalLoading?: boolean
|
|
174
176
|
isNetworkingLoading?: boolean
|
|
177
|
+
isGetExistingSwitchesLoading?: boolean
|
|
178
|
+
isGetTcpStackLoading?: boolean
|
|
175
179
|
isRemoveModalLoading?: boolean
|
|
176
180
|
isEditModalLoading?: boolean
|
|
177
181
|
isMigrateAdapterLoading?: boolean
|
|
@@ -193,6 +197,8 @@ const props = withDefaults(
|
|
|
193
197
|
diagramsData: [],
|
|
194
198
|
isManageAdaptersModalLoading: false,
|
|
195
199
|
isNetworkingLoading: false,
|
|
200
|
+
isGetExistingSwitchesLoading: false,
|
|
201
|
+
isGetTcpStackLoading: false,
|
|
196
202
|
isRemoveModalLoading: false,
|
|
197
203
|
isEditModalLoading: false,
|
|
198
204
|
isMigrateAdapterLoading: false,
|
|
@@ -183,6 +183,8 @@
|
|
|
183
183
|
:tcp-stacks="props.tcpStacks"
|
|
184
184
|
:diagrams-data="props.diagramsData"
|
|
185
185
|
:is-networking-loading="props.isNetworkingLoading"
|
|
186
|
+
:is-get-existing-switches-loading="props.isGetExistingSwitchesLoading"
|
|
187
|
+
:is-get-tcp-stack-loading="props.isGetTcpStackLoading"
|
|
186
188
|
:host-name="props.hostName"
|
|
187
189
|
:project="props.project"
|
|
188
190
|
@check-network-label="onCheckNetworkLabel"
|
|
@@ -274,6 +276,8 @@ const props = defineProps<{
|
|
|
274
276
|
selectedSwitchId: string
|
|
275
277
|
tcpStacks: UI_I_TCPStack[]
|
|
276
278
|
isNetworkingLoading: boolean
|
|
279
|
+
isGetExistingSwitchesLoading: boolean
|
|
280
|
+
isGetTcpStackLoading: boolean
|
|
277
281
|
networksList: UI_I_Network[]
|
|
278
282
|
isMigrateAdapterLoading: boolean
|
|
279
283
|
diagramsData: UI_I_DiagramData[]
|
|
@@ -141,7 +141,7 @@ const isShowErrorMessage = computed<boolean>(
|
|
|
141
141
|
|
|
142
142
|
const fieldsValues = ref<UI_I_PropertiesFields>(
|
|
143
143
|
useDeepCopy({
|
|
144
|
-
vlanId: props.initialData.vlanId || `${localization.value.common.
|
|
144
|
+
vlanId: props.initialData.vlanId || `${localization.value.common.none2} (0)`,
|
|
145
145
|
networkLabel: props.initialData.networkLabel || 'Network',
|
|
146
146
|
})
|
|
147
147
|
)
|
|
@@ -180,7 +180,7 @@ const setMessageOnChangedField = (
|
|
|
180
180
|
|
|
181
181
|
if (
|
|
182
182
|
name === 'vlanId' &&
|
|
183
|
-
values !== `${localization.value.common.
|
|
183
|
+
values !== `${localization.value.common.none2} (0)` &&
|
|
184
184
|
values !== `${localization.value.common.all} (4095)` &&
|
|
185
185
|
(isNumberInRange(values, 0, 4095) || values === '')
|
|
186
186
|
) {
|
|
@@ -18,7 +18,7 @@ export const vmKernelAdapterViewSettingsFunc = (
|
|
|
18
18
|
type: 0,
|
|
19
19
|
rows: [
|
|
20
20
|
{ name: localization.common.networkLabel, value: '' },
|
|
21
|
-
{ name: localization.common.vlanId, value: `${localization.common.
|
|
21
|
+
{ name: localization.common.vlanId, value: `${localization.common.none2} (0)` },
|
|
22
22
|
{ name: localization.common.tcpIpStack, value: 'Default' },
|
|
23
23
|
{ name: localization.common.enabledServices },
|
|
24
24
|
],
|
package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue
CHANGED
|
@@ -112,7 +112,7 @@ const title = computed<string>(
|
|
|
112
112
|
|
|
113
113
|
const connectionSettings = ref<UI_I_ConnectionSettings>({
|
|
114
114
|
networkLabel: 'VM Network',
|
|
115
|
-
vlanId: `${localization.value.common.
|
|
115
|
+
vlanId: `${localization.value.common.none2} (0)`,
|
|
116
116
|
})
|
|
117
117
|
|
|
118
118
|
const vmkernelAdapter = ref<UI_I_SelectVmkernelAdapter>({
|
|
@@ -262,7 +262,7 @@ const reset = (): void => {
|
|
|
262
262
|
wizard.reset()
|
|
263
263
|
connectionSettings.value = {
|
|
264
264
|
networkLabel: 'VM Network',
|
|
265
|
-
vlanId: `${localization.value.common.
|
|
265
|
+
vlanId: `${localization.value.common.none2} (0)`,
|
|
266
266
|
}
|
|
267
267
|
vmkernelAdapter.value = {
|
|
268
268
|
vm: '',
|
|
@@ -14,6 +14,6 @@ export const checkVlanId = (
|
|
|
14
14
|
vlanId: string,
|
|
15
15
|
localization: UI_I_Localization
|
|
16
16
|
): boolean =>
|
|
17
|
-
vlanId !== `${localization.common.
|
|
17
|
+
vlanId !== `${localization.common.none2} (0)` &&
|
|
18
18
|
vlanId !== `${localization.common.all} (4095)` &&
|
|
19
19
|
(isIntegerNumberInRange(vlanId, 0, 4095) || vlanId === '')
|
|
@@ -107,24 +107,23 @@ const passwordErrorText = computed<string>(() => {
|
|
|
107
107
|
const newPasswordErrorText = computed<string>(() => {
|
|
108
108
|
if (!initValidationFields.value.newPassword) return ''
|
|
109
109
|
|
|
110
|
-
const { current_password, new_password, confirm_password } = modelLocal.value
|
|
110
|
+
// const { current_password, new_password, confirm_password } = modelLocal.value
|
|
111
|
+
const { current_password, new_password } = modelLocal.value
|
|
111
112
|
|
|
112
113
|
const validateText = validateField(
|
|
113
114
|
localization.value,
|
|
114
115
|
current_password,
|
|
115
116
|
new_password
|
|
116
117
|
)
|
|
117
|
-
const mismatchError = getPasswordMismatchError(
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
)
|
|
118
|
+
// const mismatchError = getPasswordMismatchError(
|
|
119
|
+
// localization.value,
|
|
120
|
+
// new_password,
|
|
121
|
+
// confirm_password
|
|
122
|
+
// )
|
|
122
123
|
if (!new_password) {
|
|
123
124
|
return localization.value.common.fieldRequired
|
|
124
125
|
} else if (validateText) {
|
|
125
126
|
return validateText
|
|
126
|
-
} else if (mismatchError) {
|
|
127
|
-
return mismatchError
|
|
128
127
|
} else return ''
|
|
129
128
|
})
|
|
130
129
|
const confirmPasswordErrorText = computed<string>(() => {
|
|
@@ -166,7 +165,7 @@ const onHideModal = (): void => {
|
|
|
166
165
|
color: #9da6ad;
|
|
167
166
|
font-size: 12px;
|
|
168
167
|
font-weight: 400;
|
|
169
|
-
line-height:
|
|
168
|
+
line-height: 18px;
|
|
170
169
|
margin-bottom: 20px;
|
|
171
170
|
}
|
|
172
171
|
&__alert {
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
<common-layout-the-header-user-menu-modals-preferences-time-format
|
|
16
16
|
v-model:time-format="timeFormat"
|
|
17
17
|
:new-view="props.newView"
|
|
18
|
+
:project="props.project"
|
|
18
19
|
/>
|
|
19
20
|
</ui-modal-block-form-standard>
|
|
20
21
|
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
:new-view="props.newView"
|
|
24
25
|
:selected-type="props.selectedLanguageType"
|
|
25
26
|
:selected-language="props.selectedLanguage"
|
|
27
|
+
:project="props.project"
|
|
26
28
|
@update-language="emits('update-language', $event)"
|
|
27
29
|
@update-is-browser="emits('update-is-browser', $event)"
|
|
28
30
|
/>
|
|
@@ -32,6 +34,7 @@
|
|
|
32
34
|
<common-layout-the-header-user-menu-modals-preferences-default-console
|
|
33
35
|
v-model="consoleValue"
|
|
34
36
|
:new-view="props.newView"
|
|
37
|
+
:project="props.project"
|
|
35
38
|
/>
|
|
36
39
|
</ui-modal-block-form-standard>
|
|
37
40
|
|
|
@@ -55,6 +58,7 @@
|
|
|
55
58
|
v-model:new-view-local="newViewLocal"
|
|
56
59
|
v-model:is-show-notification="isShowNotification"
|
|
57
60
|
:new-view="props.newView"
|
|
61
|
+
:project="props.project"
|
|
58
62
|
/>
|
|
59
63
|
</ui-modal-block-form-standard>
|
|
60
64
|
</ui-modal-block-standard>
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
v-if="selectedTab === 'time-tab'"
|
|
20
20
|
v-model:time-format="timeFormat"
|
|
21
21
|
:new-view="props.newView"
|
|
22
|
+
:project="props.project"
|
|
22
23
|
/>
|
|
23
24
|
|
|
24
25
|
<common-layout-the-header-user-menu-modals-preferences-change-language
|
|
@@ -26,6 +27,7 @@
|
|
|
26
27
|
:new-view="props.newView"
|
|
27
28
|
:selected-type="props.selectedLanguageType"
|
|
28
29
|
:selected-language="props.selectedLanguage"
|
|
30
|
+
:project="props.project"
|
|
29
31
|
@update-language="emits('update-language', $event)"
|
|
30
32
|
@update-is-browser="emits('update-is-browser', $event)"
|
|
31
33
|
/>
|
|
@@ -40,6 +42,7 @@
|
|
|
40
42
|
v-if="selectedTab === 'console-tab' && isSphere"
|
|
41
43
|
v-model="consoleValue"
|
|
42
44
|
:new-view="props.newView"
|
|
45
|
+
:project="props.project"
|
|
43
46
|
/>
|
|
44
47
|
|
|
45
48
|
<common-layout-the-header-user-menu-modals-preferences-security
|
|
@@ -146,8 +149,12 @@ const isOn2FaImportant = ref<boolean>(false)
|
|
|
146
149
|
watch(
|
|
147
150
|
topNotifications,
|
|
148
151
|
(newValue) => {
|
|
149
|
-
if (
|
|
150
|
-
|
|
152
|
+
if (
|
|
153
|
+
newValue === UI_E_TopNotificationActionId.on2Fa ||
|
|
154
|
+
newValue === UI_E_TopNotificationActionId.on2FaImportant
|
|
155
|
+
) {
|
|
156
|
+
isOn2FaImportant.value =
|
|
157
|
+
newValue === UI_E_TopNotificationActionId.on2FaImportant
|
|
151
158
|
selectedTab.value = 'security-tab'
|
|
152
159
|
$store.dispatch('main/A_SET_TOP_NOTIFICATION_ACTION_ID', -1)
|
|
153
160
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
<script setup lang="ts">
|
|
13
13
|
import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
|
|
14
|
-
import type { UI_T_LangValue } from '~/lib/models/types'
|
|
14
|
+
import type { UI_T_LangValue, UI_T_Project } from '~/lib/models/types'
|
|
15
15
|
import type { UI_T_SelectedRadio } from '~/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/lib/models/types'
|
|
16
16
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
17
17
|
import type { UI_I_RadioItemLang } from '~/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/lib/models/interfaces'
|
|
@@ -24,6 +24,7 @@ import { defineBrowserLangFunc } from '~/components/common/layout/theHeader/lib/
|
|
|
24
24
|
const props = defineProps<{
|
|
25
25
|
newView: boolean
|
|
26
26
|
selectedType: UI_T_LangValue
|
|
27
|
+
project: UI_T_Project
|
|
27
28
|
selectedLanguage: UI_I_Dropdown | UI_T_LangValue
|
|
28
29
|
}>()
|
|
29
30
|
|
|
@@ -41,12 +42,15 @@ const currentComponent = computed(() =>
|
|
|
41
42
|
: defineAsyncComponent(() => import('./Old.vue'))
|
|
42
43
|
)
|
|
43
44
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
45
|
+
/* TODO SC-2104 */
|
|
46
|
+
const description = computed<string>(() =>
|
|
47
|
+
props.project === 'sphere'
|
|
48
|
+
? localization.value.common.languageDesc1
|
|
49
|
+
: localization.value.common.languageDesc.replaceAll(
|
|
50
|
+
'{trademark}',
|
|
51
|
+
String(config.public[`TRADEMARK_${useEnvLanguage()}`])
|
|
52
|
+
)
|
|
53
|
+
)
|
|
50
54
|
|
|
51
55
|
const radioOptions = readonly<UI_I_RadioItemLang[]>(
|
|
52
56
|
radioOptionsFunc(localization.value)
|
|
@@ -64,7 +68,7 @@ const setPreferenceLang = (language: string): void => {
|
|
|
64
68
|
let currentLang = language
|
|
65
69
|
|
|
66
70
|
language === 'BROWSER' &&
|
|
67
|
-
(currentLang = findInLocals(defineBrowserLangFunc())
|
|
71
|
+
(currentLang = findInLocals(defineBrowserLangFunc())) // PC-3178
|
|
68
72
|
|
|
69
73
|
emits('update-language', currentLang)
|
|
70
74
|
}
|
|
@@ -8,11 +8,13 @@
|
|
|
8
8
|
|
|
9
9
|
<script setup lang="ts">
|
|
10
10
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
11
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
11
12
|
import type { UI_I_RadioItemConsole } from '~/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/models/interfaces'
|
|
12
13
|
import { consoleOptionsFunc } from '~/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/config/consoleOptions'
|
|
13
14
|
|
|
14
15
|
const consoleValue = defineModel<string>()
|
|
15
16
|
const props = defineProps<{
|
|
17
|
+
project: UI_T_Project
|
|
16
18
|
newView: boolean
|
|
17
19
|
}>()
|
|
18
20
|
|
|
@@ -24,7 +26,11 @@ const currentComponent = computed(() =>
|
|
|
24
26
|
|
|
25
27
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
26
28
|
|
|
29
|
+
/* TODO SC-2104 */
|
|
27
30
|
const consoleOptions = readonly<UI_I_RadioItemConsole[]>(
|
|
28
|
-
consoleOptionsFunc(
|
|
31
|
+
consoleOptionsFunc(
|
|
32
|
+
localization.value,
|
|
33
|
+
props.newView && props.project === 'sphere'
|
|
34
|
+
)
|
|
29
35
|
)
|
|
30
36
|
</script>
|
|
@@ -2,14 +2,17 @@ import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
|
2
2
|
import type { UI_I_RadioItemConsole } from '~/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/models/interfaces'
|
|
3
3
|
|
|
4
4
|
export const consoleOptionsFunc = (
|
|
5
|
-
localization: UI_I_Localization
|
|
5
|
+
localization: UI_I_Localization,
|
|
6
|
+
isSphereNewView: boolean
|
|
6
7
|
): UI_I_RadioItemConsole[] => {
|
|
7
8
|
const config = useRuntimeConfig()
|
|
8
9
|
|
|
9
|
-
const remoteConsole =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const remoteConsole = isSphereNewView
|
|
11
|
+
? localization.common.remoteConsoleVmrc1
|
|
12
|
+
: localization.common.remoteConsoleVmrc.replaceAll(
|
|
13
|
+
'{trademark}',
|
|
14
|
+
String(config.public[`TRADEMARK_${useEnvLanguage()}`])
|
|
15
|
+
)
|
|
13
16
|
|
|
14
17
|
return [
|
|
15
18
|
{
|