bfg-common 1.6.47 → 1.6.49
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 +9 -255
- package/assets/localization/local_en.json +17 -264
- package/assets/localization/local_hy.json +11 -257
- package/assets/localization/local_kk.json +9 -255
- package/assets/localization/local_ru.json +18 -264
- package/assets/localization/local_zh.json +9 -255
- package/assets/scss/common/global.scss +0 -11
- package/assets/scss/common/theme.scss +2 -2
- package/components/atoms/stack/StackBlock.vue +1 -1
- package/components/atoms/tooltip/TooltipError.vue +0 -3
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +1 -1
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +1 -0
- package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +0 -1
- package/components/common/certificate/CertificateInfo.vue +1 -7
- package/components/common/configure/physicalAdapters/PhysicalAdapters.vue +0 -6
- package/components/common/configure/physicalAdapters/PhysicalAdaptersNew.vue +192 -219
- package/components/common/configure/physicalAdapters/PhysicalAdaptersOld.vue +4 -6
- package/components/common/configure/physicalAdapters/buttons/Buttons.vue +0 -1
- package/components/common/configure/physicalAdapters/modals/edit/Edit.vue +1 -26
- package/components/common/configure/physicalAdapters/modals/edit/EditNew.vue +1 -30
- package/components/common/configure/physicalAdapters/modals/edit/lib/models/interfaces.ts +0 -5
- package/components/common/configure/physicalAdapters/tableView/TableViewNew.vue +1 -12
- package/components/common/configure/physicalAdapters/tableView/lib/config/physicalAdaptersTableConfigNew.ts +21 -21
- package/components/common/configure/physicalAdapters/tableView/lib/config/settings.ts +5 -12
- package/components/common/configure/physicalAdapters/tableView/lib/models/interfaces.ts +1 -4
- package/components/common/diagramMain/Diagram.vue +85 -167
- package/components/common/diagramMain/DiagramMain.vue +10 -34
- package/components/common/diagramMain/{header/HeaderOld.vue → Header.vue} +67 -78
- package/components/common/diagramMain/modals/Modals.vue +0 -4
- package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +2 -2
- package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +2 -43
- package/components/common/diagramMain/modals/lib/config/index.ts +1 -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/modals/reconnect/New.vue +30 -38
- package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +9 -8
- package/components/common/layout/theHeader/userMenu/modals/preferences/New.vue +0 -4
- package/components/common/layout/theHeader/userMenu/modals/preferences/Old.vue +2 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +7 -11
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +1 -7
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/config/consoleOptions.ts +5 -8
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +5 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/lib/config/formatOptions.ts +1 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/Old.vue +9 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +6 -9
- package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +1 -3
- 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 +0 -9
- package/components/common/pages/scheduledTasks/table/new/New.vue +10 -12
- package/components/common/pages/tasks/Tasks.vue +1 -4
- package/components/common/pages/tasks/table/Table.vue +23 -25
- package/components/common/readyToComplete/New.vue +0 -1
- package/components/common/split/vertical/New.vue +8 -42
- package/components/common/split/vertical/Old.vue +2 -31
- package/components/common/split/vertical/Vertical.vue +0 -4
- package/components/common/vm/actions/add/New.vue +6 -21
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +1 -14
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/New.vue +0 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Old.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/New.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +2 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/New.vue +0 -2
- package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +15 -13
- package/components/common/vm/actions/confirm/Confirm.vue +0 -3
- package/components/common/vm/snapshots/DetailView.vue +6 -6
- package/components/common/wizards/datastore/add/New.vue +0 -6
- package/components/common/wizards/datastore/add/lib/config/steps.ts +1 -1
- 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 +2 -13
- package/components/common/wizards/network/add/AddNew.vue +26 -22
- package/components/common/wizards/network/add/lib/config/initialData.ts +4 -6
- package/components/common/wizards/network/add/lib/config/steps.ts +1 -1
- package/components/common/wizards/network/add/lib/models/interfaces.ts +0 -1
- package/components/common/wizards/network/add/lib/utils/utils.ts +1 -1
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsOld.vue +1 -5
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +8 -2
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsOld.vue +0 -3
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +8 -2
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesOld.vue +2 -6
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +3 -10
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceOld.vue +0 -4
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +1 -5
- package/components/common/wizards/network/add/validations/common.ts +1 -1
- package/components/common/wizards/vm/migrate/New.vue +3 -13
- package/components/common/wizards/vm/migrate/lib/config/constructDataReady.ts +0 -5
- package/components/common/wizards/vm/migrate/lib/config/steps.ts +2 -3
- package/components/common/wizards/vm/migrate/steps/computeResource/New.vue +1 -2
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/New.vue +21 -40
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/hostTable.ts +14 -44
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/models/enums.ts +0 -4
- package/components/common/wizards/vm/migrate/steps/priority/New.vue +2 -7
- package/components/common/wizards/vm/migrate/steps/selectStorage/New.vue +7 -22
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/New.vue +0 -6
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/New.vue +1 -4
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/lib/config/datastoreTable.ts +16 -12
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/New.vue +5 -10
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/lib/config/diskTable.ts +11 -16
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/old/lib/config/diskTable.ts +1 -7
- package/components/common/wizards/vm/migrate/steps/selectStorage/selectedPerDisk/New.vue +10 -17
- package/components/common/wizards/vm/migrate/steps/type/TypeNew.vue +0 -1
- package/components/common/wizards/vm/migrate/vmOrigin/New.vue +15 -35
- package/lib/models/store/tasks/enums.ts +0 -3
- package/lib/models/store/tasks/types.ts +6 -7
- package/package.json +2 -2
- package/plugins/directives.ts +5 -3
- package/public/spice-console/application/agent.js +17 -18
- package/store/tasks/actions.ts +8 -26
- package/store/tasks/mappers/recentTasks.ts +0 -1
- package/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations.ts +0 -19
- package/components/common/diagramMain/header/Header.vue +0 -49
- package/components/common/diagramMain/header/HeaderNew.vue +0 -155
- package/components/common/diagramMain/skeleton/Header.vue +0 -31
- package/components/common/diagramMain/skeleton/Switch.vue +0 -75
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/clusterTable.ts +0 -340
|
@@ -3,16 +3,17 @@
|
|
|
3
3
|
v-if="props.diagramData"
|
|
4
4
|
:class="{ 'diagram-min-width': !props.inPortlet }"
|
|
5
5
|
>
|
|
6
|
-
<div
|
|
7
|
-
|
|
8
|
-
'diagram-main-container',
|
|
9
|
-
{
|
|
10
|
-
'is-new-view': isNewView,
|
|
11
|
-
},
|
|
12
|
-
]"
|
|
13
|
-
>
|
|
14
|
-
<common-diagram-main-diagram
|
|
6
|
+
<div class="diagram-main-container">
|
|
7
|
+
<common-diagram-main-header
|
|
15
8
|
:project="props.project"
|
|
9
|
+
:in-portlet="props.inPortlet"
|
|
10
|
+
:is-show-diagram="isShowDiagram"
|
|
11
|
+
:diagram-name="props.diagramData.diagramName"
|
|
12
|
+
:test-id="props.diagramData.testId"
|
|
13
|
+
@toggle-diagram="onToggleDiagram"
|
|
14
|
+
@show-modal="onShowModal"
|
|
15
|
+
/>
|
|
16
|
+
<common-diagram-main-diagram
|
|
16
17
|
:diagram-data="props.diagramData"
|
|
17
18
|
:is-show-diagram="isShowDiagram"
|
|
18
19
|
:in-portlet="props.inPortlet"
|
|
@@ -27,7 +28,6 @@
|
|
|
27
28
|
:selected-switch-line-y="selectedSwitchLineY"
|
|
28
29
|
:is-dark-mode="props.isDarkMode"
|
|
29
30
|
:networks-count="networksCount"
|
|
30
|
-
@toggle-diagram="onToggleDiagram"
|
|
31
31
|
@click-diagram="onClickDiagram"
|
|
32
32
|
@toggle-adapters="onToggleAdapters"
|
|
33
33
|
@select-adapter="onSelectAdapter"
|
|
@@ -74,8 +74,6 @@
|
|
|
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"
|
|
79
77
|
:networks-list="props.networksList"
|
|
80
78
|
:is-migrate-adapter-loading="props.isMigrateAdapterLoading"
|
|
81
79
|
:diagrams-data="props.diagramsData"
|
|
@@ -174,8 +172,6 @@ const props = withDefaults(
|
|
|
174
172
|
diagramsData?: UI_I_DiagramData[]
|
|
175
173
|
isManageAdaptersModalLoading?: boolean
|
|
176
174
|
isNetworkingLoading?: boolean
|
|
177
|
-
isGetExistingSwitchesLoading?: boolean
|
|
178
|
-
isGetTcpStackLoading?: boolean
|
|
179
175
|
isRemoveModalLoading?: boolean
|
|
180
176
|
isEditModalLoading?: boolean
|
|
181
177
|
isMigrateAdapterLoading?: boolean
|
|
@@ -197,18 +193,12 @@ const props = withDefaults(
|
|
|
197
193
|
diagramsData: [],
|
|
198
194
|
isManageAdaptersModalLoading: false,
|
|
199
195
|
isNetworkingLoading: false,
|
|
200
|
-
isGetExistingSwitchesLoading: false,
|
|
201
|
-
isGetTcpStackLoading: false,
|
|
202
196
|
isRemoveModalLoading: false,
|
|
203
197
|
isEditModalLoading: false,
|
|
204
198
|
isMigrateAdapterLoading: false,
|
|
205
199
|
}
|
|
206
200
|
)
|
|
207
201
|
|
|
208
|
-
const { $store }: any = useNuxtApp()
|
|
209
|
-
|
|
210
|
-
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
211
|
-
|
|
212
202
|
const initialData = ref<UI_I_ModalsInitialData>({})
|
|
213
203
|
const switchInitialData = ref<UI_I_ModalsInitialData>({})
|
|
214
204
|
|
|
@@ -890,25 +880,11 @@ const onClickDiagram = (ev: MouseEvent): void => {
|
|
|
890
880
|
&-min-width {
|
|
891
881
|
//min-width: 745px;
|
|
892
882
|
//min-width: 764px;
|
|
893
|
-
&:not(:first-of-type) {
|
|
894
|
-
margin-top: 16px;
|
|
895
|
-
}
|
|
896
883
|
}
|
|
897
884
|
&-main-container {
|
|
898
885
|
padding-top: 5px;
|
|
899
886
|
}
|
|
900
887
|
}
|
|
901
|
-
|
|
902
|
-
.diagram-main-container.is-new-view {
|
|
903
|
-
//display: flex;
|
|
904
|
-
//justify-content: center;
|
|
905
|
-
//margin: 16px 16px 30px;
|
|
906
|
-
|
|
907
|
-
padding: 16px;
|
|
908
|
-
border-radius: 8px;
|
|
909
|
-
background: var(--diagram-container-bg);
|
|
910
|
-
box-shadow: 0 1px 4px 0 #00000014;
|
|
911
|
-
}
|
|
912
888
|
</style>
|
|
913
889
|
<style lang="scss">
|
|
914
890
|
.diagram-main-actions__popup.navbar-dropdown-menu {
|
|
@@ -1,67 +1,69 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<div class="diagram-header
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<a>
|
|
16
|
-
<span>
|
|
17
|
-
{{ localization.common.standardSwitch }}:
|
|
18
|
-
{{ props.diagramName }}
|
|
19
|
-
</span>
|
|
20
|
-
</a>
|
|
21
|
-
</div>
|
|
22
|
-
<div v-if="props.isShowDiagram" class="diagram-header__btn-container">
|
|
23
|
-
<span class="vertical-separator"></span>
|
|
24
|
-
<button
|
|
25
|
-
id="add-networking-button"
|
|
26
|
-
v-permission="
|
|
27
|
-
'Networks.CreateSysx Networks.CreatePortGroup Networks.UpdateSwitch Networks.CreateSwitch'
|
|
28
|
-
"
|
|
29
|
-
:data-id="`${props.testId}-add-networking-button`"
|
|
30
|
-
type="button"
|
|
31
|
-
@click="onShowModal('add-networking', props.diagramName)"
|
|
32
|
-
>
|
|
33
|
-
{{ localization.common.addNetworking }}
|
|
34
|
-
</button>
|
|
35
|
-
<button
|
|
36
|
-
id="switch-edit-button"
|
|
37
|
-
v-permission="'Networks.UpdateSwitch'"
|
|
38
|
-
:data-id="`${props.testId}-edit-button`"
|
|
39
|
-
type="button"
|
|
40
|
-
@click="onShowModal('switch-edit')"
|
|
41
|
-
>
|
|
42
|
-
{{ localization.common.edit }}
|
|
43
|
-
</button>
|
|
44
|
-
<button
|
|
45
|
-
id="switch-manage-physical-adapters-button"
|
|
46
|
-
v-permission="'Networks.UpdateSwitch'"
|
|
47
|
-
:data-id="`${props.testId}-manage-physical-adapters-button`"
|
|
48
|
-
type="button"
|
|
49
|
-
@click="onShowModal('switch-manage-physical-adapters')"
|
|
50
|
-
>
|
|
51
|
-
{{ localization.common.managePhysicalAdapters }}
|
|
52
|
-
</button>
|
|
53
|
-
<div class="diagram-main-actions-dots">
|
|
54
|
-
<atoms-collapse-nav
|
|
55
|
-
:close-after-click="true"
|
|
56
|
-
:items="switchMainNavigation"
|
|
57
|
-
:test-id="`${props.testId}-actions`"
|
|
58
|
-
popup-class="diagram-main-actions__popup"
|
|
59
|
-
@change="onShowModal"
|
|
2
|
+
<template v-if="!props.inPortlet">
|
|
3
|
+
<div class="diagram-header">
|
|
4
|
+
<div class="diagram-header-left">
|
|
5
|
+
<atoms-the-icon
|
|
6
|
+
:class="[
|
|
7
|
+
'diagram-header__arrow-icon',
|
|
8
|
+
{
|
|
9
|
+
open: props.isShowDiagram,
|
|
10
|
+
},
|
|
11
|
+
]"
|
|
12
|
+
:data-id="`${props.testId}-toggle-icon`"
|
|
13
|
+
name="angle"
|
|
14
|
+
@click="onToggleDiagram"
|
|
60
15
|
/>
|
|
16
|
+
<a>
|
|
17
|
+
<span>
|
|
18
|
+
{{ localization.common.standardSwitch }}:
|
|
19
|
+
{{ props.diagramName }}
|
|
20
|
+
</span>
|
|
21
|
+
</a>
|
|
22
|
+
</div>
|
|
23
|
+
<div v-if="props.isShowDiagram" class="diagram-header__btn-container">
|
|
24
|
+
<span class="vertical-separator"></span>
|
|
25
|
+
<button
|
|
26
|
+
id="add-networking-button"
|
|
27
|
+
v-permission="
|
|
28
|
+
'Networks.CreateSysx Networks.CreatePortGroup Networks.UpdateSwitch Networks.CreateSwitch'
|
|
29
|
+
"
|
|
30
|
+
:data-id="`${props.testId}-add-networking-button`"
|
|
31
|
+
type="button"
|
|
32
|
+
@click="onShowModal('add-networking', props.diagramName)"
|
|
33
|
+
>
|
|
34
|
+
{{ localization.common.addNetworking }}
|
|
35
|
+
</button>
|
|
36
|
+
<button
|
|
37
|
+
id="switch-edit-button"
|
|
38
|
+
v-permission="'Networks.UpdateSwitch'"
|
|
39
|
+
:data-id="`${props.testId}-edit-button`"
|
|
40
|
+
type="button"
|
|
41
|
+
@click="onShowModal('switch-edit')"
|
|
42
|
+
>
|
|
43
|
+
{{ localization.common.edit }}
|
|
44
|
+
</button>
|
|
45
|
+
<button
|
|
46
|
+
id="switch-manage-physical-adapters-button"
|
|
47
|
+
v-permission="'Networks.UpdateSwitch'"
|
|
48
|
+
:data-id="`${props.testId}-manage-physical-adapters-button`"
|
|
49
|
+
type="button"
|
|
50
|
+
@click="onShowModal('switch-manage-physical-adapters')"
|
|
51
|
+
>
|
|
52
|
+
{{ localization.common.managePhysicalAdapters }}
|
|
53
|
+
</button>
|
|
54
|
+
<div class="diagram-main-actions-dots">
|
|
55
|
+
<atoms-collapse-nav
|
|
56
|
+
:close-after-click="true"
|
|
57
|
+
:items="switchMainNavigation"
|
|
58
|
+
:test-id="`${props.testId}-actions`"
|
|
59
|
+
popup-class="diagram-main-actions__popup"
|
|
60
|
+
@change="onShowModal"
|
|
61
|
+
/>
|
|
62
|
+
</div>
|
|
61
63
|
</div>
|
|
62
64
|
</div>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
<hr class="horizontal-separator" />
|
|
66
|
+
</template>
|
|
65
67
|
</template>
|
|
66
68
|
|
|
67
69
|
<script setup lang="ts">
|
|
@@ -75,6 +77,7 @@ import { switchMainNavigationFunc } from '~/components/common/diagramMain/modals
|
|
|
75
77
|
|
|
76
78
|
const props = withDefaults(
|
|
77
79
|
defineProps<{
|
|
80
|
+
inPortlet: boolean
|
|
78
81
|
isShowDiagram: boolean
|
|
79
82
|
diagramName: string
|
|
80
83
|
testId: string
|
|
@@ -100,11 +103,12 @@ const switchMainNavigation = computed<UI_I_NavigationItem[]>(() =>
|
|
|
100
103
|
switchMainNavigationFunc(localization.value, props.testId)
|
|
101
104
|
)
|
|
102
105
|
|
|
103
|
-
const
|
|
106
|
+
const onToggleDiagram = () => emits('toggle-diagram')
|
|
107
|
+
|
|
108
|
+
const onShowModal = (modalName: string, diagramName?: string) =>
|
|
104
109
|
diagramName
|
|
105
110
|
? emits('show-modal', modalName, { switch_name: diagramName })
|
|
106
111
|
: emits('show-modal', modalName)
|
|
107
|
-
}
|
|
108
112
|
</script>
|
|
109
113
|
|
|
110
114
|
<style scoped lang="scss">
|
|
@@ -136,18 +140,7 @@ const onShowModal = (modalName: string, diagramName?: string) => {
|
|
|
136
140
|
|
|
137
141
|
.diagram-header {
|
|
138
142
|
display: flex;
|
|
139
|
-
|
|
140
|
-
width: 100%;
|
|
141
|
-
padding: 24px 16px 0;
|
|
142
|
-
overflow-x: auto;
|
|
143
|
-
overflow-y: hidden;
|
|
144
|
-
scrollbar-width: none;
|
|
145
|
-
-ms-overflow-style: none;
|
|
146
|
-
|
|
147
|
-
&::-webkit-scrollbar {
|
|
148
|
-
display: none;
|
|
149
|
-
}
|
|
150
|
-
|
|
143
|
+
padding-left: 8px;
|
|
151
144
|
a {
|
|
152
145
|
color: #0072a3;
|
|
153
146
|
cursor: pointer;
|
|
@@ -156,7 +149,6 @@ const onShowModal = (modalName: string, diagramName?: string) => {
|
|
|
156
149
|
line-height: 20px;
|
|
157
150
|
span {
|
|
158
151
|
font-weight: 700;
|
|
159
|
-
white-space: nowrap;
|
|
160
152
|
}
|
|
161
153
|
}
|
|
162
154
|
|
|
@@ -168,9 +160,7 @@ const onShowModal = (modalName: string, diagramName?: string) => {
|
|
|
168
160
|
|
|
169
161
|
&__arrow-icon {
|
|
170
162
|
width: 16px;
|
|
171
|
-
min-width: 16px;
|
|
172
163
|
height: 16px;
|
|
173
|
-
min-height: 16px;
|
|
174
164
|
margin-right: 4px;
|
|
175
165
|
transform: rotate(90deg);
|
|
176
166
|
align-self: center;
|
|
@@ -223,7 +213,6 @@ const onShowModal = (modalName: string, diagramName?: string) => {
|
|
|
223
213
|
height: 0;
|
|
224
214
|
overflow: visible;
|
|
225
215
|
border-top: 0px solid #eee;
|
|
226
|
-
width: 100%;
|
|
227
216
|
}
|
|
228
217
|
|
|
229
218
|
.vertical-separator {
|
|
@@ -183,8 +183,6 @@
|
|
|
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"
|
|
188
186
|
:host-name="props.hostName"
|
|
189
187
|
:project="props.project"
|
|
190
188
|
@check-network-label="onCheckNetworkLabel"
|
|
@@ -276,8 +274,6 @@ const props = defineProps<{
|
|
|
276
274
|
selectedSwitchId: string
|
|
277
275
|
tcpStacks: UI_I_TCPStack[]
|
|
278
276
|
isNetworkingLoading: boolean
|
|
279
|
-
isGetExistingSwitchesLoading: boolean
|
|
280
|
-
isGetTcpStackLoading: boolean
|
|
281
277
|
networksList: UI_I_Network[]
|
|
282
278
|
isMigrateAdapterLoading: boolean
|
|
283
279
|
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.none} (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.none} (0)` &&
|
|
184
184
|
values !== `${localization.value.common.all} (4095)` &&
|
|
185
185
|
(isNumberInRange(values, 0, 4095) || values === '')
|
|
186
186
|
) {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { UI_I_Button } from '~/node_modules/bfg-common/components/common/tools/lib/models/interfaces'
|
|
2
1
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
3
2
|
import type { UI_I_NavigationItem } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
4
3
|
|
|
@@ -10,7 +9,7 @@ export const switchMainNavigationFunc = (
|
|
|
10
9
|
text: localization.common.migrateVmKernelAdapter,
|
|
11
10
|
value: 'migrate-vmkernel-adapter',
|
|
12
11
|
testId: `${testId}-migrate-vm-kernel-adapter`,
|
|
13
|
-
development: true
|
|
12
|
+
development: true
|
|
14
13
|
},
|
|
15
14
|
{
|
|
16
15
|
text: localization.common.viewSettings,
|
|
@@ -21,46 +20,6 @@ export const switchMainNavigationFunc = (
|
|
|
21
20
|
text: localization.common.remove,
|
|
22
21
|
value: 'switch-remove',
|
|
23
22
|
testId: `${testId}-remove`,
|
|
24
|
-
permission: 'Networks.RemoveSwitch'
|
|
25
|
-
},
|
|
26
|
-
]
|
|
27
|
-
|
|
28
|
-
export const switchMainNavigationNewFunc = (
|
|
29
|
-
localization: UI_I_Localization,
|
|
30
|
-
testId: string
|
|
31
|
-
): UI_I_Button[] => [
|
|
32
|
-
{
|
|
33
|
-
text: localization.common.addNetworking,
|
|
34
|
-
value: 'add-networking',
|
|
35
|
-
iconName: 'network',
|
|
36
|
-
testId: `${testId}-add-networking-button`,
|
|
37
|
-
permission:
|
|
38
|
-
'Networks.CreateSysx Networks.CreatePortGroup Networks.UpdateSwitch Networks.CreateSwitch',
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
text: localization.common.edit,
|
|
42
|
-
value: 'switch-edit',
|
|
43
|
-
iconName: 'edit',
|
|
44
|
-
testId: `${testId}-edit-button`,
|
|
45
|
-
permission: 'Networks.UpdateSwitch',
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
text: localization.common.managePhysicalAdapters,
|
|
49
|
-
value: 'switch-manage-physical-adapters',
|
|
50
|
-
iconName: 'settings',
|
|
51
|
-
testId: `${testId}-manage-physical-adapters-button`,
|
|
52
|
-
permission: 'Networks.UpdateSwitch',
|
|
53
|
-
},
|
|
54
|
-
// {
|
|
55
|
-
// text: localization.common.migrateVmKernelAdapter,
|
|
56
|
-
// value: 'migrate-vmkernel-adapter',
|
|
57
|
-
// testId: `${testId}-migrate-vm-kernel-adapter`,
|
|
58
|
-
// development: true,
|
|
59
|
-
// },
|
|
60
|
-
{
|
|
61
|
-
text: localization.common.viewSettings,
|
|
62
|
-
value: 'switch-view-settings',
|
|
63
|
-
iconName: 'password-hide',
|
|
64
|
-
testId: `${testId}-view-settings`,
|
|
23
|
+
permission: 'Networks.RemoveSwitch'
|
|
65
24
|
},
|
|
66
25
|
]
|
|
@@ -52,5 +52,4 @@ export const {
|
|
|
52
52
|
vmKernelAdapterViewSettingsFunc,
|
|
53
53
|
} = vmKernelAdapterData
|
|
54
54
|
// export const { managePhysicalAdapterTableData } = temporaryData
|
|
55
|
-
export const { switchMainNavigationFunc
|
|
56
|
-
diagramConfig
|
|
55
|
+
export const { switchMainNavigationFunc } = diagramConfig
|
|
@@ -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.none} (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.none} (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.none} (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.none} (0)` &&
|
|
18
18
|
vlanId !== `${localization.common.all} (4095)` &&
|
|
19
19
|
(isIntegerNumberInRange(vlanId, 0, 4095) || vlanId === '')
|
|
@@ -1,37 +1,35 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
>
|
|
13
|
-
<
|
|
14
|
-
<div class="
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}}</span>
|
|
20
|
-
</div>
|
|
21
|
-
<div class="timer-block mt-4">
|
|
22
|
-
<common-countdown-timer
|
|
23
|
-
:timer="props.timer"
|
|
24
|
-
:total-time="props.totalTime"
|
|
25
|
-
is-hide-seconds-text
|
|
26
|
-
/>
|
|
27
|
-
</div>
|
|
2
|
+
<ui-modal
|
|
3
|
+
:title="props.title"
|
|
4
|
+
:texts="modalTexts"
|
|
5
|
+
test-id="reconnect-modal"
|
|
6
|
+
size="sm"
|
|
7
|
+
width="560px"
|
|
8
|
+
show
|
|
9
|
+
@hide="emits('logout')"
|
|
10
|
+
@submit="emits('reconnect')"
|
|
11
|
+
>
|
|
12
|
+
<template #content>
|
|
13
|
+
<div class="reconnect-content">
|
|
14
|
+
<div class="icon-content flex items-center gap-2">
|
|
15
|
+
<span class="icon-sessions"></span>
|
|
16
|
+
<span class="description-text">{{
|
|
17
|
+
localization.common.reconnectDesc
|
|
18
|
+
}}</span>
|
|
28
19
|
</div>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
20
|
+
<div class="timer-block mt-4">
|
|
21
|
+
<common-countdown-timer
|
|
22
|
+
:timer="props.timer"
|
|
23
|
+
:total-time="props.totalTime"
|
|
24
|
+
is-hide-seconds-text
|
|
25
|
+
/>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</template>
|
|
29
|
+
<template #footerLeftContent>
|
|
30
|
+
<span></span>
|
|
31
|
+
</template>
|
|
32
|
+
</ui-modal>
|
|
35
33
|
</template>
|
|
36
34
|
|
|
37
35
|
<script lang="ts" setup>
|
|
@@ -58,12 +56,6 @@ const modalTexts = ref<UI_I_ModalTexts>({
|
|
|
58
56
|
</script>
|
|
59
57
|
|
|
60
58
|
<style lang="scss" scoped>
|
|
61
|
-
.reconnect-modal-container {
|
|
62
|
-
:deep(.modal), :deep(.modal-background) {
|
|
63
|
-
z-index: calc(var(--z-modal) + 3);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
59
|
.reconnect-content {
|
|
68
60
|
padding: 8px 32px 8px 32px;
|
|
69
61
|
|
|
@@ -107,23 +107,24 @@ const passwordErrorText = computed<string>(() => {
|
|
|
107
107
|
const newPasswordErrorText = computed<string>(() => {
|
|
108
108
|
if (!initValidationFields.value.newPassword) return ''
|
|
109
109
|
|
|
110
|
-
|
|
111
|
-
const { current_password, new_password } = modelLocal.value
|
|
110
|
+
const { current_password, new_password, confirm_password } = modelLocal.value
|
|
112
111
|
|
|
113
112
|
const validateText = validateField(
|
|
114
113
|
localization.value,
|
|
115
114
|
current_password,
|
|
116
115
|
new_password
|
|
117
116
|
)
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
117
|
+
const mismatchError = getPasswordMismatchError(
|
|
118
|
+
localization.value,
|
|
119
|
+
new_password,
|
|
120
|
+
confirm_password
|
|
121
|
+
)
|
|
123
122
|
if (!new_password) {
|
|
124
123
|
return localization.value.common.fieldRequired
|
|
125
124
|
} else if (validateText) {
|
|
126
125
|
return validateText
|
|
126
|
+
} else if (mismatchError) {
|
|
127
|
+
return mismatchError
|
|
127
128
|
} else return ''
|
|
128
129
|
})
|
|
129
130
|
const confirmPasswordErrorText = computed<string>(() => {
|
|
@@ -165,7 +166,7 @@ const onHideModal = (): void => {
|
|
|
165
166
|
color: #9da6ad;
|
|
166
167
|
font-size: 12px;
|
|
167
168
|
font-weight: 400;
|
|
168
|
-
line-height:
|
|
169
|
+
line-height: 14.52px;
|
|
169
170
|
margin-bottom: 20px;
|
|
170
171
|
}
|
|
171
172
|
&__alert {
|
|
@@ -15,7 +15,6 @@
|
|
|
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"
|
|
19
18
|
/>
|
|
20
19
|
</ui-modal-block-form-standard>
|
|
21
20
|
|
|
@@ -24,7 +23,6 @@
|
|
|
24
23
|
:new-view="props.newView"
|
|
25
24
|
:selected-type="props.selectedLanguageType"
|
|
26
25
|
:selected-language="props.selectedLanguage"
|
|
27
|
-
:project="props.project"
|
|
28
26
|
@update-language="emits('update-language', $event)"
|
|
29
27
|
@update-is-browser="emits('update-is-browser', $event)"
|
|
30
28
|
/>
|
|
@@ -34,7 +32,6 @@
|
|
|
34
32
|
<common-layout-the-header-user-menu-modals-preferences-default-console
|
|
35
33
|
v-model="consoleValue"
|
|
36
34
|
:new-view="props.newView"
|
|
37
|
-
:project="props.project"
|
|
38
35
|
/>
|
|
39
36
|
</ui-modal-block-form-standard>
|
|
40
37
|
|
|
@@ -58,7 +55,6 @@
|
|
|
58
55
|
v-model:new-view-local="newViewLocal"
|
|
59
56
|
v-model:is-show-notification="isShowNotification"
|
|
60
57
|
:new-view="props.newView"
|
|
61
|
-
:project="props.project"
|
|
62
58
|
/>
|
|
63
59
|
</ui-modal-block-form-standard>
|
|
64
60
|
</ui-modal-block-standard>
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
v-if="selectedTab === 'time-tab'"
|
|
20
20
|
v-model:time-format="timeFormat"
|
|
21
21
|
:new-view="props.newView"
|
|
22
|
-
:project="props.project"
|
|
23
22
|
/>
|
|
24
23
|
|
|
25
24
|
<common-layout-the-header-user-menu-modals-preferences-change-language
|
|
@@ -27,7 +26,6 @@
|
|
|
27
26
|
:new-view="props.newView"
|
|
28
27
|
:selected-type="props.selectedLanguageType"
|
|
29
28
|
:selected-language="props.selectedLanguage"
|
|
30
|
-
:project="props.project"
|
|
31
29
|
@update-language="emits('update-language', $event)"
|
|
32
30
|
@update-is-browser="emits('update-is-browser', $event)"
|
|
33
31
|
/>
|
|
@@ -42,7 +40,6 @@
|
|
|
42
40
|
v-if="selectedTab === 'console-tab' && isSphere"
|
|
43
41
|
v-model="consoleValue"
|
|
44
42
|
:new-view="props.newView"
|
|
45
|
-
:project="props.project"
|
|
46
43
|
/>
|
|
47
44
|
|
|
48
45
|
<common-layout-the-header-user-menu-modals-preferences-security
|
|
@@ -149,12 +146,8 @@ const isOn2FaImportant = ref<boolean>(false)
|
|
|
149
146
|
watch(
|
|
150
147
|
topNotifications,
|
|
151
148
|
(newValue) => {
|
|
152
|
-
if (
|
|
153
|
-
newValue === UI_E_TopNotificationActionId.
|
|
154
|
-
newValue === UI_E_TopNotificationActionId.on2FaImportant
|
|
155
|
-
) {
|
|
156
|
-
isOn2FaImportant.value =
|
|
157
|
-
newValue === UI_E_TopNotificationActionId.on2FaImportant
|
|
149
|
+
if (newValue === UI_E_TopNotificationActionId.on2Fa || newValue === UI_E_TopNotificationActionId.on2FaImportant) {
|
|
150
|
+
isOn2FaImportant.value = newValue === UI_E_TopNotificationActionId.on2FaImportant
|
|
158
151
|
selectedTab.value = 'security-tab'
|
|
159
152
|
$store.dispatch('main/A_SET_TOP_NOTIFICATION_ACTION_ID', -1)
|
|
160
153
|
}
|