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