bfg-common 1.6.76 → 1.6.77
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 +4213 -4474
- package/assets/localization/local_en.json +4217 -4479
- package/assets/localization/local_hy.json +4217 -4478
- package/assets/localization/local_kk.json +4216 -4477
- package/assets/localization/local_ru.json +4216 -4477
- package/assets/localization/local_zh.json +4214 -4475
- package/assets/scss/common/global.scss +0 -11
- package/assets/scss/common/normalize.scss +0 -3
- package/assets/scss/common/theme.scss +2 -2
- package/components/atoms/dropdown/dropdown/Dropdown.vue +170 -170
- package/components/atoms/dropdown/dropdown/lib/models/interfaces.ts +10 -10
- package/components/atoms/stack/StackBlock.vue +1 -1
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +2 -2
- package/components/atoms/tooltip/TooltipError.vue +0 -3
- package/components/common/adapterManager/AdapterManagerNew.vue +0 -86
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +1 -1
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +1 -0
- package/components/common/adapterManager/ui/actions/bar/Bar.vue +0 -2
- package/components/common/adapterManager/ui/actions/bar/BarNew.vue +2 -3
- package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +0 -1
- 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 -169
- package/components/common/diagramMain/DiagramMain.vue +10 -40
- 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/{confirmTeamingSettingsModal/ConfirmTeamingSettingsModalOld.vue → ConfirmTeamingSettingsModal.vue} +5 -2
- package/components/common/diagramMain/modals/editSettings/EditSettings.vue +102 -104
- package/components/common/diagramMain/modals/editSettings/{modal/EditSettingsModalOld.vue → EditSettingsModal.vue} +51 -12
- package/components/common/diagramMain/modals/editSettings/lib/models/interfaces.ts +0 -6
- package/components/common/diagramMain/modals/editSettings/tabs/{networkProperties/NetworkPropertiesOld.vue → NetworkProperties.vue} +113 -12
- package/components/common/diagramMain/modals/editSettings/tabs/{security/SecurityOld.vue → Security.vue} +48 -25
- package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +164 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{teamingFailover/TeamingFailoverOld.vue → TeamingFailover.vue} +48 -11
- package/components/common/diagramMain/modals/editSettings/tabs/{trafficShaping/TrafficShapingOld.vue → TrafficShaping.vue} +134 -12
- package/components/common/diagramMain/modals/editSettings/tabs/port/{ipvFourSettings/IpvFourSettingsOld.vue → IpvFourSettings.vue} +152 -11
- package/components/common/diagramMain/modals/editSettings/tabs/port/{portProperties/PortPropertiesOld.vue → PortProperties.vue} +103 -12
- 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/lib/utils/index.ts +4 -34
- 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/modals/Rename.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/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +253 -184
- 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/tools/Actions.vue +3 -7
- package/components/common/tools/lib/models/interfaces.ts +0 -1
- 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/reservation/New.vue +0 -2
- package/components/common/vm/actions/common/select/options/New.vue +12 -14
- package/components/common/vm/actions/common/select/options/Old.vue +15 -16
- 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/actions/rename/Old.vue +0 -1
- 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 +1 -1
- 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/modals/UnsavedChangesModal.vue +0 -32
- package/components/common/diagramMain/modals/editSettings/EditSettingsNew.vue +0 -285
- package/components/common/diagramMain/modals/editSettings/EditSettingsOld.vue +0 -254
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModal.vue +0 -31
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModalNew.vue +0 -82
- package/components/common/diagramMain/modals/editSettings/lib/config/config.ts +0 -15
- package/components/common/diagramMain/modals/editSettings/lib/utils/utils.ts +0 -177
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModal.vue +0 -137
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModalNew.vue +0 -91
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkProperties.vue +0 -158
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkPropertiesNew.vue +0 -262
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettings.vue +0 -192
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettingsNew.vue +0 -388
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortProperties.vue +0 -139
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortPropertiesNew.vue +0 -286
- package/components/common/diagramMain/modals/editSettings/tabs/security/Security.vue +0 -209
- package/components/common/diagramMain/modals/editSettings/tabs/security/SecurityNew.vue +0 -233
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchProperties.vue +0 -128
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesNew.vue +0 -235
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesOld.vue +0 -87
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailover.vue +0 -99
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailoverNew.vue +0 -319
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShaping.vue +0 -173
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShapingNew.vue +0 -348
- 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
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<ui-modal
|
|
4
|
-
v-if="props.show"
|
|
5
|
-
:texts="modalTextsLocal"
|
|
6
|
-
:subtitle="props.title"
|
|
7
|
-
:test-id="`${props.title}-edit-modal`"
|
|
8
|
-
width="1120px"
|
|
9
|
-
size="md"
|
|
10
|
-
:is-loading="props.isEditModalLoading"
|
|
11
|
-
:title="localization.common.editSettings"
|
|
12
|
-
@hide="onHideEditSettingsModal"
|
|
13
|
-
@submit="emits('change-flag-send-data')"
|
|
14
|
-
>
|
|
15
|
-
<template #content>
|
|
16
|
-
<div class="modal-content">
|
|
17
|
-
<common-diagram-main-modals-edit-settings
|
|
18
|
-
v-model:network-edit-data="networkEditData"
|
|
19
|
-
:items="props.items"
|
|
20
|
-
:view-name="props.viewName"
|
|
21
|
-
:initial-data="props.initialData"
|
|
22
|
-
:adapters="props.adapters"
|
|
23
|
-
:flag-send-data="props.flagSendData"
|
|
24
|
-
:is-dark-mode="props.isDarkMode"
|
|
25
|
-
@send-edit-data="onSendData"
|
|
26
|
-
@change-edit-fields-data="onChangeEditFieldsData"
|
|
27
|
-
@check-network-label="onCheckNetworkLabel"
|
|
28
|
-
/>
|
|
29
|
-
</div>
|
|
30
|
-
</template>
|
|
31
|
-
<template #footerLeftContent><span></span></template>
|
|
32
|
-
</ui-modal>
|
|
33
|
-
</div>
|
|
34
|
-
</template>
|
|
35
|
-
|
|
36
|
-
<script setup lang="ts">
|
|
37
|
-
import type { UI_I_TabItem } from '~/node_modules/bfg-uikit/components/ui/tabs/models/interfaces'
|
|
38
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
39
|
-
import type { UI_I_EditFieldsData } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
40
|
-
import type { UI_I_PortViewSettingsModalExtendedProps } from '~/components/common/diagramMain/modals/editSettings/lib/models/interfaces'
|
|
41
|
-
|
|
42
|
-
const props = defineProps<UI_I_PortViewSettingsModalExtendedProps>()
|
|
43
|
-
|
|
44
|
-
const emits = defineEmits<{
|
|
45
|
-
(event: 'hide'): void
|
|
46
|
-
(event: 'change-edit-fields-data', editFieldsData: UI_I_EditFieldsData): void
|
|
47
|
-
(event: 'send-edit-data', type: string): void
|
|
48
|
-
(
|
|
49
|
-
event: 'check-network-label',
|
|
50
|
-
label: string,
|
|
51
|
-
sendMessage: (message: string) => void
|
|
52
|
-
): void
|
|
53
|
-
(event: 'change-flag-send-data'): void
|
|
54
|
-
}>()
|
|
55
|
-
|
|
56
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
57
|
-
|
|
58
|
-
const networkEditData = defineModel<UI_I_EditFieldsData>('network-edit-data')
|
|
59
|
-
|
|
60
|
-
const modalTextsLocal = computed<UI_I_ModalTexts>(() => ({
|
|
61
|
-
button1: localization.value.common.cancel,
|
|
62
|
-
button2: localization.value.common.save,
|
|
63
|
-
}))
|
|
64
|
-
|
|
65
|
-
const onCheckNetworkLabel = (
|
|
66
|
-
label: string,
|
|
67
|
-
sendMessage: (message: string) => void
|
|
68
|
-
) => {
|
|
69
|
-
emits('check-network-label', label, sendMessage)
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
const onHideEditSettingsModal = (): void => {
|
|
73
|
-
emits('hide')
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
const onChangeEditFieldsData = (newEditFieldsData: UI_I_EditFieldsData) => {
|
|
77
|
-
emits('change-edit-fields-data', newEditFieldsData)
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
const onSendData = (type: string) => {
|
|
81
|
-
emits('send-edit-data', type)
|
|
82
|
-
}
|
|
83
|
-
</script>
|
|
84
|
-
|
|
85
|
-
<style scoped lang="scss">
|
|
86
|
-
.modal-content {
|
|
87
|
-
height: 463px;
|
|
88
|
-
max-height: 463px;
|
|
89
|
-
padding: 8px 0 0 32px;
|
|
90
|
-
}
|
|
91
|
-
</style>
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="network-properties">
|
|
3
|
-
<component
|
|
4
|
-
:is="currentComponent"
|
|
5
|
-
v-model="fieldsValues"
|
|
6
|
-
:is-show-error-message="isShowErrorMessage"
|
|
7
|
-
:error-messages="props.errorMessages"
|
|
8
|
-
:vlan-id-select-data="vlanIdSelectDataLocal"
|
|
9
|
-
:flag-send-data="props.flagSendData"
|
|
10
|
-
@hide-error-message-alert="onHideErrorMessageAlert"
|
|
11
|
-
/>
|
|
12
|
-
</div>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script setup lang="ts">
|
|
16
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
17
|
-
import type {
|
|
18
|
-
UI_I_ModalsInitialData,
|
|
19
|
-
UI_I_EditSettingsErrorMessage,
|
|
20
|
-
UI_I_PropertiesFields,
|
|
21
|
-
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
22
|
-
import type { UI_T_PropertiesFieldName } from '~/components/common/diagramMain/lib/models/types'
|
|
23
|
-
import type { UI_I_VlanIdData } from '~/components/common/wizards/network/add/lib/models/interfaces'
|
|
24
|
-
import { vlanIdSelectDataFunc } from '~/components/common/wizards/network/add/lib/config/config'
|
|
25
|
-
|
|
26
|
-
const props = withDefaults(
|
|
27
|
-
defineProps<{
|
|
28
|
-
isShowErrorMessageAlert: boolean | boolean[]
|
|
29
|
-
errorMessages: UI_I_EditSettingsErrorMessage
|
|
30
|
-
networkAlreadyExists: boolean
|
|
31
|
-
initialData?: UI_I_ModalsInitialData
|
|
32
|
-
hasErrorMessages?: boolean
|
|
33
|
-
flagSendData?: boolean
|
|
34
|
-
}>(),
|
|
35
|
-
{
|
|
36
|
-
initialData: () => ({}),
|
|
37
|
-
hasErrorMessages: undefined,
|
|
38
|
-
flagSendData: false,
|
|
39
|
-
}
|
|
40
|
-
)
|
|
41
|
-
|
|
42
|
-
const emits = defineEmits<{
|
|
43
|
-
(
|
|
44
|
-
event: 'change-error-messages',
|
|
45
|
-
errorMessage: string,
|
|
46
|
-
fieldName: keyof UI_I_EditSettingsErrorMessage
|
|
47
|
-
): void
|
|
48
|
-
(event: 'hide-error-message-alert'): void
|
|
49
|
-
(
|
|
50
|
-
event: 'change-edit-properties-data',
|
|
51
|
-
propertiesData: UI_I_PropertiesFields
|
|
52
|
-
): void
|
|
53
|
-
}>()
|
|
54
|
-
|
|
55
|
-
const { $store }: any = useNuxtApp()
|
|
56
|
-
|
|
57
|
-
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
58
|
-
|
|
59
|
-
const currentComponent = computed(() =>
|
|
60
|
-
isNewView.value
|
|
61
|
-
? defineAsyncComponent(() => import('./NetworkPropertiesNew.vue'))
|
|
62
|
-
: defineAsyncComponent(() => import('./NetworkPropertiesOld.vue'))
|
|
63
|
-
)
|
|
64
|
-
|
|
65
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
66
|
-
|
|
67
|
-
const vlanIdSelectDataLocal = computed<UI_I_VlanIdData[]>(() =>
|
|
68
|
-
vlanIdSelectDataFunc(localization.value)
|
|
69
|
-
)
|
|
70
|
-
|
|
71
|
-
const isShowErrorMessage = computed<boolean>(
|
|
72
|
-
() =>
|
|
73
|
-
props.hasErrorMessages &&
|
|
74
|
-
(isNewView.value
|
|
75
|
-
? props.isShowErrorMessageAlert[0]
|
|
76
|
-
: props.isShowErrorMessageAlert)
|
|
77
|
-
)
|
|
78
|
-
|
|
79
|
-
const fieldsValues = ref<UI_I_PropertiesFields>(
|
|
80
|
-
useDeepCopy({
|
|
81
|
-
vlanId:
|
|
82
|
-
props.initialData.vlanId || `${localization.value.common.none2} (0)`,
|
|
83
|
-
networkLabel: props.initialData.networkLabel || 'Network',
|
|
84
|
-
})
|
|
85
|
-
)
|
|
86
|
-
|
|
87
|
-
const onHideErrorMessageAlert = () => emits('hide-error-message-alert')
|
|
88
|
-
|
|
89
|
-
const onChangeData = (data: UI_I_PropertiesFields) =>
|
|
90
|
-
emits('change-edit-properties-data', data)
|
|
91
|
-
|
|
92
|
-
const changeErrorMessage = (
|
|
93
|
-
errorMessage: string,
|
|
94
|
-
fieldName: keyof UI_I_EditSettingsErrorMessage
|
|
95
|
-
) => emits('change-error-messages', errorMessage, fieldName)
|
|
96
|
-
|
|
97
|
-
const messageTexts = (local: UI_I_Localization) => ({
|
|
98
|
-
vlanId: local.common.vlanIdInvalidMessage,
|
|
99
|
-
networkLabel: local.common.networkLabelInvalidMessage,
|
|
100
|
-
})
|
|
101
|
-
|
|
102
|
-
const isNumberInRange = (value: number | string, down: number, up: number) =>
|
|
103
|
-
isNaN(Number(value)) || Number(value) < down || Number(value) > up
|
|
104
|
-
|
|
105
|
-
const setMessageOnChangedField = (
|
|
106
|
-
values: string | number,
|
|
107
|
-
name: UI_T_PropertiesFieldName,
|
|
108
|
-
text: string
|
|
109
|
-
) => {
|
|
110
|
-
if (name === 'networkLabel' && !values) {
|
|
111
|
-
changeErrorMessage(text, name)
|
|
112
|
-
return
|
|
113
|
-
} else if (name === 'networkLabel' && props.networkAlreadyExists) return
|
|
114
|
-
|
|
115
|
-
if (
|
|
116
|
-
name === 'vlanId' &&
|
|
117
|
-
values !== `${localization.value.common.none2} (0)` &&
|
|
118
|
-
values !== `${localization.value.common.all} (4095)` &&
|
|
119
|
-
(isNumberInRange(values, 0, 4095) || values === '')
|
|
120
|
-
) {
|
|
121
|
-
changeErrorMessage(text, name)
|
|
122
|
-
return
|
|
123
|
-
}
|
|
124
|
-
changeErrorMessage('', name)
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
watch(
|
|
128
|
-
fieldsValues,
|
|
129
|
-
(newValues: UI_I_PropertiesFields) => {
|
|
130
|
-
setMessageOnChangedField(
|
|
131
|
-
newValues.vlanId,
|
|
132
|
-
'vlanId',
|
|
133
|
-
messageTexts(localization.value).vlanId
|
|
134
|
-
)
|
|
135
|
-
setMessageOnChangedField(
|
|
136
|
-
newValues.networkLabel,
|
|
137
|
-
'networkLabel',
|
|
138
|
-
messageTexts(localization.value).networkLabel
|
|
139
|
-
)
|
|
140
|
-
onChangeData(newValues)
|
|
141
|
-
!props.hasErrorMessages && onHideErrorMessageAlert()
|
|
142
|
-
},
|
|
143
|
-
{ deep: true }
|
|
144
|
-
)
|
|
145
|
-
|
|
146
|
-
onMounted(() => {
|
|
147
|
-
onChangeData(fieldsValues.value)
|
|
148
|
-
})
|
|
149
|
-
onUnmounted(() => {
|
|
150
|
-
onHideErrorMessageAlert()
|
|
151
|
-
})
|
|
152
|
-
</script>
|
|
153
|
-
|
|
154
|
-
<style scoped lang="scss">
|
|
155
|
-
.network-properties {
|
|
156
|
-
width: 100%;
|
|
157
|
-
}
|
|
158
|
-
</style>
|
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="content">
|
|
3
|
-
<div class="content-fields">
|
|
4
|
-
<div class="content-fields-title">
|
|
5
|
-
{{ localization.common.properties }}
|
|
6
|
-
</div>
|
|
7
|
-
|
|
8
|
-
<div v-if="props.isShowErrorMessage" class="content-fields-alert">
|
|
9
|
-
<div
|
|
10
|
-
v-for="messageObject in validationMessagesArray"
|
|
11
|
-
:key="messageObject.key"
|
|
12
|
-
class="content-fields-alert-item"
|
|
13
|
-
>
|
|
14
|
-
<ui-alert
|
|
15
|
-
:messages="[messageObject.message]"
|
|
16
|
-
test-id="network-properties-alert"
|
|
17
|
-
size="md"
|
|
18
|
-
@hide="onHideMessage(messageObject.key)"
|
|
19
|
-
/>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
<div class="content-fields-block">
|
|
24
|
-
<div class="col">
|
|
25
|
-
<h4 class="content-subtitle col-left">
|
|
26
|
-
{{ localization.common.networkLabel }}
|
|
27
|
-
</h4>
|
|
28
|
-
<div class="col-right input">
|
|
29
|
-
<ui-input
|
|
30
|
-
id="network-label"
|
|
31
|
-
v-model="fieldsValues.networkLabel"
|
|
32
|
-
test-id="network-label"
|
|
33
|
-
type="text"
|
|
34
|
-
:placeholder="localization.common.networkLabel"
|
|
35
|
-
size="md"
|
|
36
|
-
:error="props.errorMessages.networkLabel"
|
|
37
|
-
/>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
<ui-line margin="16px 0" />
|
|
42
|
-
|
|
43
|
-
<div class="col">
|
|
44
|
-
<h4 class="content-subtitle col-left">
|
|
45
|
-
{{ localization.common.vlanId }}
|
|
46
|
-
</h4>
|
|
47
|
-
<div class="col-right combobox">
|
|
48
|
-
<ui-combobox
|
|
49
|
-
v-model="fieldsValues.vlanId"
|
|
50
|
-
:items="vlanIdSelectDataLocal"
|
|
51
|
-
select-width="100%"
|
|
52
|
-
show-text
|
|
53
|
-
test-id="vlan-id-combobox"
|
|
54
|
-
:placeholder="localization.common.vlanId"
|
|
55
|
-
:error="!!props.errorMessages.vlanId"
|
|
56
|
-
:error-text="props.errorMessages.vlanId"
|
|
57
|
-
error-type="tooltip"
|
|
58
|
-
width="auto"
|
|
59
|
-
@change="selectVlanId"
|
|
60
|
-
/>
|
|
61
|
-
</div>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
</div>
|
|
66
|
-
</template>
|
|
67
|
-
|
|
68
|
-
<script setup lang="ts">
|
|
69
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
70
|
-
import type {
|
|
71
|
-
UI_I_EditSettingsErrorMessage,
|
|
72
|
-
UI_I_PropertiesFields,
|
|
73
|
-
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
74
|
-
import type { UI_I_VlanIdData } from '~/components/common/wizards/network/add/lib/models/interfaces'
|
|
75
|
-
import { vlanIdSelectDataFunc } from '~/components/common/wizards/network/add/lib/config/config'
|
|
76
|
-
import { validationMessagesArrayNewFunc } from '~/components/common/diagramMain/modals/lib/utils'
|
|
77
|
-
|
|
78
|
-
const props = defineProps<{
|
|
79
|
-
isShowErrorMessage: boolean
|
|
80
|
-
errorMessages: UI_I_EditSettingsErrorMessage
|
|
81
|
-
vlanIdSelectData: UI_I_VlanIdData[]
|
|
82
|
-
flagSendData: boolean
|
|
83
|
-
}>()
|
|
84
|
-
|
|
85
|
-
const emits = defineEmits<{
|
|
86
|
-
(event: 'hide-error-message-alert'): void
|
|
87
|
-
}>()
|
|
88
|
-
|
|
89
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
90
|
-
|
|
91
|
-
const fieldsValues = defineModel<UI_I_PropertiesFields>()
|
|
92
|
-
|
|
93
|
-
const vlanIdSelectDataLocal = computed<UI_I_Localization>(() =>
|
|
94
|
-
vlanIdSelectDataFunc(localization.value)
|
|
95
|
-
)
|
|
96
|
-
|
|
97
|
-
const selectVlanId = (id: string): void => {
|
|
98
|
-
fieldsValues.value.vlanId = id
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
const keys = ref<keyof UI_I_EditSettingsErrorMessage>([
|
|
102
|
-
'networkLabel',
|
|
103
|
-
'vlanId',
|
|
104
|
-
])
|
|
105
|
-
|
|
106
|
-
const validationMessagesArray = computed(() =>
|
|
107
|
-
validationMessagesArrayNewFunc(keys.value, props.errorMessages)
|
|
108
|
-
)
|
|
109
|
-
|
|
110
|
-
const onHideMessage = (
|
|
111
|
-
messageKey: keyof UI_I_EditSettingsErrorMessage
|
|
112
|
-
): void => {
|
|
113
|
-
keys.value = keys.value
|
|
114
|
-
.filter((key) => key !== messageKey)
|
|
115
|
-
.filter((key) => props.errorMessages[key])
|
|
116
|
-
|
|
117
|
-
if (keys.value.length === 0) {
|
|
118
|
-
emits('hide-error-message-alert')
|
|
119
|
-
keys.value = ['networkLabel', 'vlanId']
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
watch(
|
|
124
|
-
() => props.flagSendData,
|
|
125
|
-
() => {
|
|
126
|
-
keys.value = ['networkLabel', 'vlanId']
|
|
127
|
-
}
|
|
128
|
-
)
|
|
129
|
-
</script>
|
|
130
|
-
|
|
131
|
-
<style scoped lang="scss">
|
|
132
|
-
.content {
|
|
133
|
-
width: 100%;
|
|
134
|
-
|
|
135
|
-
&-fields-title {
|
|
136
|
-
font-weight: 400;
|
|
137
|
-
font-size: 20px;
|
|
138
|
-
line-height: 24px;
|
|
139
|
-
letter-spacing: 0;
|
|
140
|
-
color: var(--title-form-first-color);
|
|
141
|
-
margin-bottom: 16px;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
&-title {
|
|
145
|
-
display: block;
|
|
146
|
-
margin: 16px 0;
|
|
147
|
-
font-weight: 500;
|
|
148
|
-
font-size: 16px;
|
|
149
|
-
line-height: 20px;
|
|
150
|
-
letter-spacing: 0;
|
|
151
|
-
color: var(--title-form-first-color);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
&-subtitle {
|
|
155
|
-
font-weight: 400;
|
|
156
|
-
font-size: 13px;
|
|
157
|
-
line-height: 16px;
|
|
158
|
-
letter-spacing: 0;
|
|
159
|
-
vertical-align: middle;
|
|
160
|
-
color: var(--title-form-first-color);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.col {
|
|
164
|
-
display: flex;
|
|
165
|
-
column-gap: 16px;
|
|
166
|
-
|
|
167
|
-
&-left {
|
|
168
|
-
padding-top: 10px;
|
|
169
|
-
width: calc((100% - 8px) / 3);
|
|
170
|
-
text-overflow: ellipsis;
|
|
171
|
-
white-space: nowrap;
|
|
172
|
-
overflow: hidden;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
&-right {
|
|
176
|
-
width: calc(((100% - 8px) / 3) * 2);
|
|
177
|
-
|
|
178
|
-
&.input {
|
|
179
|
-
max-width: 400px;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
&.combobox {
|
|
183
|
-
max-width: 200px;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
&-fields {
|
|
189
|
-
&-alert {
|
|
190
|
-
margin-bottom: 8px;
|
|
191
|
-
|
|
192
|
-
&-item:not(:last-of-type) {
|
|
193
|
-
margin-bottom: 12px;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
&-block {
|
|
198
|
-
padding-top: 8px;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
&-col {
|
|
202
|
-
display: flex;
|
|
203
|
-
column-gap: 12px;
|
|
204
|
-
|
|
205
|
-
&-left {
|
|
206
|
-
width: 60%;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
&-right {
|
|
210
|
-
width: 40%;
|
|
211
|
-
|
|
212
|
-
&.input {
|
|
213
|
-
max-width: 400px;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
&.combobox {
|
|
217
|
-
max-width: 200px;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
@media (max-width: 896px) {
|
|
225
|
-
.content-fields {
|
|
226
|
-
&-col {
|
|
227
|
-
display: flex;
|
|
228
|
-
row-gap: 12px;
|
|
229
|
-
flex-direction: column;
|
|
230
|
-
|
|
231
|
-
&-left {
|
|
232
|
-
width: 100%;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
&-right {
|
|
236
|
-
width: 100%;
|
|
237
|
-
|
|
238
|
-
&.input {
|
|
239
|
-
max-width: 400px;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
&.combobox {
|
|
243
|
-
max-width: 200px;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
:deep(.combobox-input) {
|
|
251
|
-
width: 100%;
|
|
252
|
-
height: 36px;
|
|
253
|
-
}
|
|
254
|
-
:deep(.ui-select-toggle-button.md) {
|
|
255
|
-
padding: 0 8px 0 12px;
|
|
256
|
-
}
|
|
257
|
-
:deep(.ui-checkbox-label) {
|
|
258
|
-
&.md {
|
|
259
|
-
height: unset;
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
</style>
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="ipv-four-settings">
|
|
3
|
-
<component
|
|
4
|
-
:is="currentComponent"
|
|
5
|
-
v-model="fieldsValues"
|
|
6
|
-
:is-show-error-message="isShowErrorMessage"
|
|
7
|
-
:error-messages="props.errorMessages"
|
|
8
|
-
:flag-send-data="props.flagSendData"
|
|
9
|
-
@hide-error-message-alert="onHideErrorMessageAlert"
|
|
10
|
-
/>
|
|
11
|
-
</div>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script setup lang="ts">
|
|
15
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
16
|
-
import type {
|
|
17
|
-
UI_I_EditSettingsErrorMessage,
|
|
18
|
-
UI_I_IpvFourSettingsFields,
|
|
19
|
-
UI_I_ModalsInitialData,
|
|
20
|
-
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
21
|
-
import type { UI_T_IpFourSettingsFieldName } from '~/components/common/wizards/network/add/lib/models/types'
|
|
22
|
-
|
|
23
|
-
const props = withDefaults(
|
|
24
|
-
defineProps<{
|
|
25
|
-
isShowErrorMessageAlert: boolean | boolean[]
|
|
26
|
-
errorMessages: UI_I_EditSettingsErrorMessage
|
|
27
|
-
initialData?: UI_I_ModalsInitialData
|
|
28
|
-
hasErrorMessages?: boolean
|
|
29
|
-
flagSendData?: boolean
|
|
30
|
-
}>(),
|
|
31
|
-
{
|
|
32
|
-
initialData: () => ({}),
|
|
33
|
-
hasErrorMessages: undefined,
|
|
34
|
-
flagSendData: false,
|
|
35
|
-
}
|
|
36
|
-
)
|
|
37
|
-
|
|
38
|
-
const emits = defineEmits<{
|
|
39
|
-
(
|
|
40
|
-
event: 'change-error-messages',
|
|
41
|
-
errorMessage: string,
|
|
42
|
-
fieldName: keyof UI_I_EditSettingsErrorMessage
|
|
43
|
-
): void
|
|
44
|
-
(event: 'hide-error-message-alert'): void
|
|
45
|
-
(
|
|
46
|
-
event: 'change-port-ipv-four-data',
|
|
47
|
-
newPortEditIpvFourData: UI_I_IpvFourSettingsFields
|
|
48
|
-
): void
|
|
49
|
-
}>()
|
|
50
|
-
|
|
51
|
-
const { $store }: any = useNuxtApp()
|
|
52
|
-
|
|
53
|
-
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
54
|
-
|
|
55
|
-
const currentComponent = computed(() =>
|
|
56
|
-
isNewView.value
|
|
57
|
-
? defineAsyncComponent(() => import('./IpvFourSettingsNew.vue'))
|
|
58
|
-
: defineAsyncComponent(() => import('./IpvFourSettingsOld.vue'))
|
|
59
|
-
)
|
|
60
|
-
|
|
61
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
62
|
-
|
|
63
|
-
const isShowErrorMessage = computed<boolean>(
|
|
64
|
-
() =>
|
|
65
|
-
props.hasErrorMessages &&
|
|
66
|
-
(isNewView.value
|
|
67
|
-
? props.isShowErrorMessageAlert[1]
|
|
68
|
-
: props.isShowErrorMessageAlert)
|
|
69
|
-
)
|
|
70
|
-
|
|
71
|
-
const fieldsValues = ref<UI_I_IpvFourSettingsFields>(
|
|
72
|
-
useDeepCopy(props.initialData.tcpConfig)
|
|
73
|
-
)
|
|
74
|
-
|
|
75
|
-
const onHideErrorMessageAlert = (): void => emits('hide-error-message-alert')
|
|
76
|
-
|
|
77
|
-
const onChangeData = (data: UI_I_IpvFourSettingsFields) =>
|
|
78
|
-
emits('change-port-ipv-four-data', data)
|
|
79
|
-
|
|
80
|
-
const changeErrorMessage = (
|
|
81
|
-
errorMessage: string,
|
|
82
|
-
fieldName: keyof UI_I_EditSettingsErrorMessage
|
|
83
|
-
) => emits('change-error-messages', errorMessage, fieldName)
|
|
84
|
-
|
|
85
|
-
const checkIfValidIP = (str: string) => {
|
|
86
|
-
const regexExp =
|
|
87
|
-
/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/gi
|
|
88
|
-
|
|
89
|
-
return regexExp.test(str)
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
const messageTexts = (local: UI_I_Localization) => ({
|
|
93
|
-
ipFourAddressEmpty: local.common.ipFourAddressEmpty,
|
|
94
|
-
subnetMaskEmpty: local.common.subnetMaskEmpty,
|
|
95
|
-
defaultGatewayEmpty: local.common.defaultGatewayEmpty,
|
|
96
|
-
ipFourAddressInvalid: local.common.ipFourAddressInvalid,
|
|
97
|
-
subnetMaskInvalid: local.common.subnetMaskInvalid,
|
|
98
|
-
defaultGatewayInvalid: local.common.defaultGatewayInvalid,
|
|
99
|
-
})
|
|
100
|
-
|
|
101
|
-
const setMessageOnChangedField = (
|
|
102
|
-
values: string,
|
|
103
|
-
name: UI_T_IpFourSettingsFieldName,
|
|
104
|
-
ipSettings: string,
|
|
105
|
-
override?: boolean
|
|
106
|
-
) => {
|
|
107
|
-
if (ipSettings === '0') {
|
|
108
|
-
changeErrorMessage('', name)
|
|
109
|
-
return
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
if (name === 'ipFourAddress') {
|
|
113
|
-
if (!values) {
|
|
114
|
-
changeErrorMessage(messageTexts(localization.value)[`${name}Empty`], name)
|
|
115
|
-
return
|
|
116
|
-
}
|
|
117
|
-
if (!checkIfValidIP(values)) {
|
|
118
|
-
changeErrorMessage(
|
|
119
|
-
messageTexts(localization.value)[`${name}Invalid`],
|
|
120
|
-
name
|
|
121
|
-
)
|
|
122
|
-
return
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
if (name === 'subnetMask') {
|
|
126
|
-
if (!values) {
|
|
127
|
-
changeErrorMessage(messageTexts(localization.value)[`${name}Empty`], name)
|
|
128
|
-
return
|
|
129
|
-
}
|
|
130
|
-
if (!checkIfValidIP(values)) {
|
|
131
|
-
changeErrorMessage(
|
|
132
|
-
messageTexts(localization.value)[`${name}Invalid`],
|
|
133
|
-
name
|
|
134
|
-
)
|
|
135
|
-
return
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
if (name === 'defaultGateway' && override) {
|
|
139
|
-
if (!values) {
|
|
140
|
-
changeErrorMessage(messageTexts(localization.value)[`${name}Empty`], name)
|
|
141
|
-
return
|
|
142
|
-
}
|
|
143
|
-
if (!checkIfValidIP(values)) {
|
|
144
|
-
changeErrorMessage(
|
|
145
|
-
messageTexts(localization.value)[`${name}Invalid`],
|
|
146
|
-
name
|
|
147
|
-
)
|
|
148
|
-
return
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
changeErrorMessage('', name)
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
watch(
|
|
155
|
-
fieldsValues,
|
|
156
|
-
(newValues: UI_I_IpvFourSettingsFields) => {
|
|
157
|
-
setMessageOnChangedField(
|
|
158
|
-
newValues.ipv4Address,
|
|
159
|
-
'ipFourAddress',
|
|
160
|
-
newValues.ipv4Settings
|
|
161
|
-
)
|
|
162
|
-
setMessageOnChangedField(
|
|
163
|
-
newValues.subnetMask,
|
|
164
|
-
'subnetMask',
|
|
165
|
-
newValues.ipv4Settings
|
|
166
|
-
)
|
|
167
|
-
setMessageOnChangedField(
|
|
168
|
-
newValues.defaultGateway.value,
|
|
169
|
-
'defaultGateway',
|
|
170
|
-
newValues.ipv4Settings,
|
|
171
|
-
newValues.defaultGateway.checked
|
|
172
|
-
)
|
|
173
|
-
onChangeData(newValues)
|
|
174
|
-
!props.hasErrorMessages && onHideErrorMessageAlert()
|
|
175
|
-
},
|
|
176
|
-
{ deep: true }
|
|
177
|
-
)
|
|
178
|
-
|
|
179
|
-
onMounted(() => {
|
|
180
|
-
onChangeData(fieldsValues.value)
|
|
181
|
-
})
|
|
182
|
-
|
|
183
|
-
onUnmounted(() => {
|
|
184
|
-
onHideErrorMessageAlert()
|
|
185
|
-
})
|
|
186
|
-
</script>
|
|
187
|
-
|
|
188
|
-
<style scoped lang="scss">
|
|
189
|
-
.ipv-four-settings {
|
|
190
|
-
width: 100%;
|
|
191
|
-
}
|
|
192
|
-
</style>
|