bfg-common 1.5.554 → 1.5.555
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 +4 -20
- package/assets/localization/local_en.json +4 -20
- package/assets/localization/local_hy.json +4 -20
- package/assets/localization/local_kk.json +4 -20
- package/assets/localization/local_ru.json +4 -20
- package/assets/localization/local_zh.json +5 -21
- package/components/common/modals/confirmByInput/ConfirmByInput.vue +1 -9
- package/components/common/modals/confirmByInput/ConfirmByInputNew.vue +2 -7
- package/components/common/pages/backups/modals/createBackup/New.vue +2 -8
- package/components/common/pages/backups/modals/restore/Restore.vue +5 -9
- package/components/common/pages/backups/modals/restore/RestoreNew.vue +3 -13
- package/components/common/pages/backups/modals/restore/RestoreOld.vue +18 -6
- package/components/common/vm/actions/add/Add.vue +46 -119
- package/components/common/vm/actions/add/New.vue +16 -54
- package/components/common/vm/actions/add/Old.vue +16 -55
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +13 -78
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +7 -52
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareOld.vue +8 -52
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +62 -96
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareNew.vue +13 -24
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareOld.vue +14 -25
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +139 -159
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuNew.vue +8 -15
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuOld.vue +8 -13
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue +62 -75
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbController.vue +6 -17
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +6 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerOld.vue +6 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCard.vue +17 -39
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardNew.vue +6 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardOld.vue +6 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/lib/config/options.ts +4 -4
- package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +6 -93
- package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +8 -62
- package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsOld.vue +8 -60
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptions.vue +5 -69
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +12 -32
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsOld.vue +12 -33
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +114 -132
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +41 -6
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderOld.vue +44 -6
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +8 -23
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +21 -31
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsOld.vue +26 -34
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +28 -34
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/Old.vue +24 -30
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/RemoteConsoleOptions.vue +8 -112
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +3 -3
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/{KeymapNew.vue → New.vue} +6 -6
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/{KeymapOld.vue → Old.vue} +5 -5
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +6 -7
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/Tools.vue +26 -60
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsNew.vue +7 -26
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsOld.vue +60 -86
- package/components/common/vm/actions/common/lib/models/interfaces.ts +57 -25
- package/components/common/vm/actions/editSettings/EditSettings.vue +10 -33
- package/components/common/vm/actions/editSettings/EditSettingsOld.vue +2 -30
- package/components/common/vm/actions/editSettings/new/New.vue +2 -30
- package/components/common/vm/actions/lib/models/interfaces.ts +4 -29
- package/components/common/vm/actions/lib/utils.ts +37 -32
- package/package.json +1 -3
- /package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/{PasswordNew.vue → New.vue} +0 -0
- /package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/{PasswordOld.vue → Old.vue} +0 -0
|
@@ -946,8 +946,6 @@
|
|
|
946
946
|
"moreInformation": "附加信息",
|
|
947
947
|
"motherboardModel": "主板型號",
|
|
948
948
|
"mountGuestTools": "挂载访客工具",
|
|
949
|
-
"mountingGuestTools": "安装访客工具",
|
|
950
|
-
"mountingGuestToolsDesc": "将访客工具安装到虚拟机中的 {0}。",
|
|
951
949
|
"mountNfsReadOnly": "将 NFS 挂载为只读",
|
|
952
950
|
"mouseMode": "鼠标模式",
|
|
953
951
|
"moveDown": "下移",
|
|
@@ -1186,9 +1184,7 @@
|
|
|
1186
1184
|
"poweredOn": "包括",
|
|
1187
1185
|
"powerManagement": "能源管理",
|
|
1188
1186
|
"powerOff": "关闭",
|
|
1189
|
-
"poweringOff": "关闭电源",
|
|
1190
1187
|
"powerOn": "打开",
|
|
1191
|
-
"poweringOn": "开机中",
|
|
1192
1188
|
"powerOnByDefault": "默认开机",
|
|
1193
1189
|
"precisionTimeProtocol": "精确时间协议",
|
|
1194
1190
|
"precisionTimeProtocolEnableMonitoringEventsHelpText": "事件是发生在 Sphere Zone 或主机上的对象上的用户操作或系统操作的记录。 请注意,只有在以下情况下才能启用回退 \"启用监控事件\" 被选中。",
|
|
@@ -1281,7 +1277,6 @@
|
|
|
1281
1277
|
"reservationMustBe": "预订必须在 {0} 和 {1} 之间。",
|
|
1282
1278
|
"reserveGuestMemory": "保留所有来宾内存(一切都被锁定)",
|
|
1283
1279
|
"reset": "重置",
|
|
1284
|
-
"resetting": "重置",
|
|
1285
1280
|
"resetGreen": "重置为绿色",
|
|
1286
1281
|
"resourceAllocation": "资源分配",
|
|
1287
1282
|
"resourcePool": "资源池",
|
|
@@ -1290,7 +1285,6 @@
|
|
|
1290
1285
|
"restart": "重啟",
|
|
1291
1286
|
"restartDirectConsoleUIService": "重啟直接控制台 UI 服務?",
|
|
1292
1287
|
"restartGuestOs": "重新启动来宾操作系统",
|
|
1293
|
-
"restartingGuestOs": "重启客户操作系统",
|
|
1294
1288
|
"restartLoadBasedTeamingDaemonService": "重启 Load-Based Teaming Daemon 服务",
|
|
1295
1289
|
"restartTheService": "重啟服務",
|
|
1296
1290
|
"restrictReuse": "限制重复使用",
|
|
@@ -1516,7 +1510,6 @@
|
|
|
1516
1510
|
"supportedEvcModes": "支持的 EVC 模式",
|
|
1517
1511
|
"suspend": "暂停",
|
|
1518
1512
|
"suspended": "暂停",
|
|
1519
|
-
"suspending": "暂停",
|
|
1520
1513
|
"suspendThisVirtualMachineWhenRevertingToSelectedSnapshot": "恢复到选定的快照时暂停此虚拟机",
|
|
1521
1514
|
"swapFileLocation": "交换文件位置",
|
|
1522
1515
|
"switch": "开关,开关",
|
|
@@ -1583,9 +1576,8 @@
|
|
|
1583
1576
|
"toggleFullscreenMode": "切换全屏模式",
|
|
1584
1577
|
"togglePassthrough": "切换直通",
|
|
1585
1578
|
"tokenTrustworthiness": "代币可信度",
|
|
1586
|
-
"tools": "
|
|
1587
|
-
"toolsEnable": "
|
|
1588
|
-
"balloon": "Balloon",
|
|
1579
|
+
"tools": "工具",
|
|
1580
|
+
"toolsEnable": "启用工具",
|
|
1589
1581
|
"toolsNotInstalledVm": "此虚拟机上未安装这些工具。",
|
|
1590
1582
|
"total": "一般的",
|
|
1591
1583
|
"total_migrations": "vMotion 迁移总数",
|
|
@@ -1611,8 +1603,6 @@
|
|
|
1611
1603
|
"unlockTime": "解锁时间",
|
|
1612
1604
|
"unlockUser": "取消阻止用户",
|
|
1613
1605
|
"unmountGuestTools": "卸载访客工具",
|
|
1614
|
-
"unmountingGuestTools": "卸载访客工具",
|
|
1615
|
-
"unmountingGuestToolsDesc": "正在从“{0}”虚拟机中卸载客户机工具。",
|
|
1616
1606
|
"unmountGuestToolsInstaller": "卸载来宾工具安装程序",
|
|
1617
1607
|
"unsafe": "不安全",
|
|
1618
1608
|
"unselected": "未选择",
|
|
@@ -1845,7 +1835,6 @@
|
|
|
1845
1835
|
"paused": "已暂停",
|
|
1846
1836
|
"blocked": "被阻止",
|
|
1847
1837
|
"shuttingDown": "关闭",
|
|
1848
|
-
"shuttingDownGuestOs": "关闭客户操作系统",
|
|
1849
1838
|
"shuttingOff": "关闭",
|
|
1850
1839
|
"observedIpRanges": "观察到的IP范围",
|
|
1851
1840
|
"wakeOnLanSupported": "支持局域网唤醒",
|
|
@@ -2030,12 +2019,11 @@
|
|
|
2030
2019
|
"coreCountMHz": "核心 {0} MHz",
|
|
2031
2020
|
"cPUUsageMHzDuringInterval": "时间间隔内的 CPU 使用情况(以 MHz 为单位)",
|
|
2032
2021
|
"usageCoreCount": "核心 {0} 的用法",
|
|
2033
|
-
"hardStopConfirmation": "硬停止确认",
|
|
2034
2022
|
"confirmHardStopVmOperation": "确认强制停止虚拟机。",
|
|
2035
2023
|
"confirmGroupHardStopVmOperation": "请确认强制停止 {0} 台虚拟机的运行。",
|
|
2036
|
-
"confirmHardStopVmOperationFirstDescription": "
|
|
2037
|
-
"confirmHardStopVmOperationSecondDescription": "
|
|
2038
|
-
"confirmHardStopVmOperationThirdDescription": "
|
|
2024
|
+
"confirmHardStopVmOperationFirstDescription": "硬停止虚拟机操作会强制终止当前在虚拟机上运行的所有进程并关闭虚拟机电源。继续执行此操作可能会导致未保存的信息丢失和/或虚拟机不必要的停机。",
|
|
2025
|
+
"confirmHardStopVmOperationSecondDescription": "在使用硬停止虚拟机操作之前,首先尝试关闭虚拟机电源。仅当您无法关闭虚拟机电源或虚拟机变得无响应时,才使用硬停止虚拟机操作。有关详细信息。",
|
|
2026
|
+
"confirmHardStopVmOperationThirdDescription": "有关详细信息,请参阅知识库文章 {0}.",
|
|
2039
2027
|
"doYouWantHardStopVm": "您想硬停止虚拟机吗?",
|
|
2040
2028
|
"confirmGuestShutDown": "确认访客关闭",
|
|
2041
2029
|
"confirmGuestShutDownDescription": "关闭所选虚拟机的来宾操作系统?",
|
|
@@ -2168,8 +2156,6 @@
|
|
|
2168
2156
|
"networksCount": "网络 ({0})",
|
|
2169
2157
|
"applyTheRule": "应用规则",
|
|
2170
2158
|
"restoreFromBackup": "从备份恢复",
|
|
2171
|
-
"restoreConfirmation": "从备份恢复",
|
|
2172
|
-
"restoreConfirmationDesc": "您确定要恢复虚拟机吗?此操作将覆盖当前虚拟机,所有未保存的数据都将",
|
|
2173
2159
|
"backupType": "备份类型",
|
|
2174
2160
|
"ipAddressIsRequired": "IP 地址为必填项",
|
|
2175
2161
|
"portIsRequired": "端口为必填项",
|
|
@@ -2615,8 +2601,6 @@
|
|
|
2615
2601
|
"selectAdvancedAction": "选择高级操作",
|
|
2616
2602
|
"migrateVm": "迁移虚拟机",
|
|
2617
2603
|
"powerOffVm": "关闭虚拟机",
|
|
2618
|
-
"powerOffConfirmation": "断电确认",
|
|
2619
|
-
"powerOffConfirmationDesc": "您确定要关闭 “{0}” 虚拟机吗?",
|
|
2620
2604
|
"powerOnVm": "启动虚拟机",
|
|
2621
2605
|
"rebootGuestOnVm": "重新启动虚拟机上的客户机",
|
|
2622
2606
|
"resetVm": "重置虚拟机",
|
|
@@ -8,15 +8,9 @@
|
|
|
8
8
|
:sub-title="props.subTitle"
|
|
9
9
|
:modal-texts="props.modalTexts"
|
|
10
10
|
:test-id="props.testId"
|
|
11
|
-
:width="props.width"
|
|
12
|
-
:placeholder="props.placeholder"
|
|
13
11
|
@hide="emits('hide')"
|
|
14
12
|
@confirm="onConfirm"
|
|
15
|
-
|
|
16
|
-
<template #content>
|
|
17
|
-
<slot name="content" />
|
|
18
|
-
</template>
|
|
19
|
-
</common-modals-confirm-by-input-new>
|
|
13
|
+
/>
|
|
20
14
|
<common-modals-confirm-by-input-old
|
|
21
15
|
v-else
|
|
22
16
|
v-model="confirmationForm"
|
|
@@ -48,7 +42,6 @@ const props = withDefaults(
|
|
|
48
42
|
testId?: string
|
|
49
43
|
loading?: boolean
|
|
50
44
|
width?: string
|
|
51
|
-
placeholder?: string
|
|
52
45
|
modalTexts?: UI_I_ModalTexts
|
|
53
46
|
}>(),
|
|
54
47
|
{
|
|
@@ -59,7 +52,6 @@ const props = withDefaults(
|
|
|
59
52
|
testId: 'common-confirmation',
|
|
60
53
|
loading: false,
|
|
61
54
|
width: '580px',
|
|
62
|
-
placeholder: '',
|
|
63
55
|
modalTexts: {
|
|
64
56
|
button1: 'Cancel',
|
|
65
57
|
button2: 'Remove',
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
:test-id="props.testId"
|
|
4
4
|
:message="props.description"
|
|
5
5
|
:texts="modalTextsLocal"
|
|
6
|
-
:width="props.width"
|
|
7
6
|
icon-name="info-status"
|
|
8
7
|
@submit="onSubmit"
|
|
9
8
|
@hide="onHide"
|
|
@@ -11,14 +10,12 @@
|
|
|
11
10
|
<template #content>
|
|
12
11
|
<div class="confirm-modal__body-content">
|
|
13
12
|
<span>{{ props.title }}</span>
|
|
14
|
-
<
|
|
15
|
-
<span>{{ props.description }}</span>
|
|
16
|
-
</slot>
|
|
13
|
+
<span>{{ props.description }}</span>
|
|
17
14
|
|
|
18
15
|
<ui-input
|
|
19
16
|
v-model="confirmationFormLocal"
|
|
20
17
|
:test-id="`${props.testId}-confirm-input`"
|
|
21
|
-
:placeholder="
|
|
18
|
+
:placeholder="localization.vsphereHa.nodeIPAddress"
|
|
22
19
|
:error="confirmInputErrorText"
|
|
23
20
|
class="confirm-modal__input"
|
|
24
21
|
input-style="rounded"
|
|
@@ -39,8 +36,6 @@ const props = defineProps<{
|
|
|
39
36
|
description: string
|
|
40
37
|
subTitle: string
|
|
41
38
|
isValid: boolean
|
|
42
|
-
width?: string
|
|
43
|
-
placeholder?: string
|
|
44
39
|
modalTexts: UI_I_ModalTexts
|
|
45
40
|
}>()
|
|
46
41
|
const confirmationFormLocal = defineModel<string>({ required: true })
|
|
@@ -149,9 +149,8 @@
|
|
|
149
149
|
</template>
|
|
150
150
|
<template #content>
|
|
151
151
|
<div class="mt-4">
|
|
152
|
-
<div class="ready-to-complete">
|
|
153
|
-
|
|
154
|
-
</div>
|
|
152
|
+
<div class="ready-to-complete"></div>
|
|
153
|
+
<common-ready-to-complete :data="props.readyToCompleteData" />
|
|
155
154
|
</div>
|
|
156
155
|
</template>
|
|
157
156
|
</ui-wizard-block>
|
|
@@ -258,11 +257,6 @@ const onCreateDatastore = (): void => emits('submit')
|
|
|
258
257
|
}
|
|
259
258
|
|
|
260
259
|
.ready-to-complete {
|
|
261
|
-
:deep(.details-list__col-right) {
|
|
262
|
-
display: grid;
|
|
263
|
-
grid-template-columns: auto 1fr;
|
|
264
|
-
align-items: flex-start;
|
|
265
|
-
}
|
|
266
260
|
:deep(.details-list):nth-child(1) {
|
|
267
261
|
.details-item-value {
|
|
268
262
|
white-space: break-spaces;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
<common-pages-backups-modals-restore-new
|
|
3
3
|
v-if="isNewView"
|
|
4
4
|
v-model="model"
|
|
5
|
-
v-model:is-show-confirm="isShowConfirm"
|
|
6
5
|
:wizard="wizard"
|
|
7
6
|
:selected-scheme="selectedScheme"
|
|
8
7
|
:alert-messages="alertMessages"
|
|
@@ -16,14 +15,12 @@
|
|
|
16
15
|
@get-datastore="getDatastoreTableFunc"
|
|
17
16
|
@get-networks="onGetNetworks"
|
|
18
17
|
@change-steps="onChangeSteps"
|
|
19
|
-
@submit-confirm="onFinish"
|
|
20
18
|
@hide="onHideModal"
|
|
21
|
-
@submit
|
|
19
|
+
@submit="onRestore"
|
|
22
20
|
/>
|
|
23
21
|
<common-pages-backups-modals-restore-old
|
|
24
22
|
v-else
|
|
25
23
|
v-model="model"
|
|
26
|
-
v-model:is-show-confirm="isShowConfirm"
|
|
27
24
|
:wizard="wizard"
|
|
28
25
|
:selected-scheme="selectedScheme"
|
|
29
26
|
:ready-complete-data="readyToCompleteInfo"
|
|
@@ -38,9 +35,8 @@
|
|
|
38
35
|
@get-datastore="getDatastoreTableFunc"
|
|
39
36
|
@get-networks="onGetNetworks"
|
|
40
37
|
@change-steps="onChangeSteps"
|
|
41
|
-
@
|
|
38
|
+
@finish="onRestore"
|
|
42
39
|
@hide="onHideModal"
|
|
43
|
-
@submit-wizard="onSubmitWizard"
|
|
44
40
|
/>
|
|
45
41
|
</template>
|
|
46
42
|
|
|
@@ -275,9 +271,7 @@ const onHideModal = (): void => {
|
|
|
275
271
|
emits('hide')
|
|
276
272
|
}
|
|
277
273
|
|
|
278
|
-
const
|
|
279
|
-
|
|
280
|
-
const onSubmitWizard = (): void => {
|
|
274
|
+
const onRestore = (): void => {
|
|
281
275
|
if (model.value.restore_code === restoreCodes.existing) {
|
|
282
276
|
isShowConfirm.value = true
|
|
283
277
|
} else {
|
|
@@ -285,6 +279,8 @@ const onSubmitWizard = (): void => {
|
|
|
285
279
|
}
|
|
286
280
|
}
|
|
287
281
|
|
|
282
|
+
const isShowConfirm = ref<boolean>(false)
|
|
283
|
+
|
|
288
284
|
const onGetNetworks = (hostId: string): void => {
|
|
289
285
|
emits('get-networks', hostId)
|
|
290
286
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
class="restore-wizard"
|
|
11
11
|
@change-steps="onChangeSteps"
|
|
12
12
|
@hide="onHideModal"
|
|
13
|
-
@submit="
|
|
13
|
+
@submit="onCreateDatastore"
|
|
14
14
|
>
|
|
15
15
|
<template #content="{ selectedStep }">
|
|
16
16
|
<ui-wizard-block
|
|
@@ -161,15 +161,6 @@
|
|
|
161
161
|
</ui-wizard-block>
|
|
162
162
|
</template>
|
|
163
163
|
</ui-wizard>
|
|
164
|
-
|
|
165
|
-
<common-modals-confirmation
|
|
166
|
-
v-if="isShowConfirm"
|
|
167
|
-
:headline="localization.common.restoreConfirmation"
|
|
168
|
-
:description="localization.common.restoreConfirmationDesc"
|
|
169
|
-
icon-name="circle-warning"
|
|
170
|
-
@hide-modal="isShowConfirm = false"
|
|
171
|
-
@confirm="emits('submit-confirm')"
|
|
172
|
-
/>
|
|
173
164
|
</template>
|
|
174
165
|
|
|
175
166
|
<script setup lang="ts">
|
|
@@ -187,7 +178,6 @@ import type { UI_I_NetworkTableItem } from '~/lib/models/store/network/interface
|
|
|
187
178
|
import { dynamicSteps } from '~/components/common/pages/backups/modals/restore/lib/config/steps'
|
|
188
179
|
|
|
189
180
|
const model = defineModel<UI_I_RestoreForm>({ required: true })
|
|
190
|
-
const isShowConfirm = defineModel<boolean>('is-show-confirm')
|
|
191
181
|
|
|
192
182
|
const props = defineProps<{
|
|
193
183
|
wizard: Wizard
|
|
@@ -205,9 +195,8 @@ const emits = defineEmits<{
|
|
|
205
195
|
(event: 'change-storage', value: UI_I_DatastoreTableItem | null): void
|
|
206
196
|
(event: 'get-datastore', value: string): void
|
|
207
197
|
(event: 'get-networks', value: string): void
|
|
208
|
-
(event: 'submit-confirm'): void
|
|
209
198
|
(event: 'hide'): void
|
|
210
|
-
(event: 'submit
|
|
199
|
+
(event: 'submit'): void
|
|
211
200
|
}>()
|
|
212
201
|
|
|
213
202
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
@@ -261,6 +250,7 @@ const onGetNetworks = (hostId: string): void => {
|
|
|
261
250
|
}
|
|
262
251
|
|
|
263
252
|
const onHideModal = (): void => emits('hide')
|
|
253
|
+
const onCreateDatastore = (): void => emits('submit')
|
|
264
254
|
</script>
|
|
265
255
|
|
|
266
256
|
<style scoped lang="scss">
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
test-id="restore"
|
|
10
10
|
@change-steps="onChangeSteps"
|
|
11
11
|
@hide="onHideModal"
|
|
12
|
-
@submit="
|
|
12
|
+
@submit="onRestore"
|
|
13
13
|
>
|
|
14
14
|
<template #modalBody="{ selectedStep }">
|
|
15
15
|
<div
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
:headline="localization.common.attention"
|
|
80
80
|
:description="localization.common.restoreBackupConfirmDescription"
|
|
81
81
|
@hide-modal="isShowConfirm = false"
|
|
82
|
-
@confirm="
|
|
82
|
+
@confirm="onFinish"
|
|
83
83
|
/>
|
|
84
84
|
</template>
|
|
85
85
|
|
|
@@ -93,15 +93,15 @@ import type { UI_I_NetworkTableItem } from '~/lib/models/store/network/interface
|
|
|
93
93
|
import type { UI_I_NameCheck } from '~/components/common/pages/backups/modals/restore/name/lib/models/interfaces'
|
|
94
94
|
import type { UI_I_RestoreForm } from '~/components/common/pages/backups/modals/lib/models/interfaces'
|
|
95
95
|
import { dynamicSteps } from '~/components/common/pages/backups/modals/restore/lib/config/steps'
|
|
96
|
+
import { restoreCodes } from '~/components/common/pages/backups/modals/restore/lib/config/restoreCodes'
|
|
96
97
|
|
|
97
98
|
const model = defineModel<UI_I_RestoreForm>({ required: true })
|
|
98
|
-
const isShowConfirm = defineModel<boolean>('is-show-confirm')
|
|
99
99
|
|
|
100
100
|
const props = defineProps<{
|
|
101
101
|
wizard: Wizard
|
|
102
102
|
selectedScheme: number[]
|
|
103
103
|
readyCompleteData: UI_I_TableInfoItem[]
|
|
104
|
-
|
|
104
|
+
nameFormSubmit: null | Function
|
|
105
105
|
storageSubmit: null | Function
|
|
106
106
|
isLoading: boolean
|
|
107
107
|
errors: string[]
|
|
@@ -116,8 +116,7 @@ const emits = defineEmits<{
|
|
|
116
116
|
(event: 'get-networks', value: string): void
|
|
117
117
|
(event: 'check-name', value: UI_I_NameCheck): void
|
|
118
118
|
(event: 'change-steps', value: UI_I_WizardStep[]): void
|
|
119
|
-
(event: '
|
|
120
|
-
(event: 'submit-wizard'): void
|
|
119
|
+
(event: 'finish'): void
|
|
121
120
|
(event: 'hide'): void
|
|
122
121
|
}>()
|
|
123
122
|
|
|
@@ -139,10 +138,23 @@ const onCheckName = async (data: UI_I_NameCheck): Promise<void> => {
|
|
|
139
138
|
emits('check-name', data)
|
|
140
139
|
}
|
|
141
140
|
|
|
141
|
+
const onFinish = (): void => {
|
|
142
|
+
emits('finish')
|
|
143
|
+
}
|
|
142
144
|
const onHideModal = (): void => {
|
|
143
145
|
emits('hide')
|
|
144
146
|
}
|
|
145
147
|
|
|
148
|
+
const onRestore = (): void => {
|
|
149
|
+
if (model.value.restore_code === restoreCodes.existing) {
|
|
150
|
+
isShowConfirm.value = true
|
|
151
|
+
} else {
|
|
152
|
+
onFinish()
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
const isShowConfirm = ref<boolean>(false)
|
|
157
|
+
|
|
146
158
|
const onGetNetworks = (hostId: string): void => {
|
|
147
159
|
emits('get-networks', hostId)
|
|
148
160
|
}
|