fix(ui): проверять подтверждение импорта WireGuard

This commit is contained in:
Denozordec committed 2026-09-28 23:58:59 +07:00
1 parent f980619046
commit efc6da1249
6 files changed
+60 -5

No files matched your search

+4
View File
@@ -455,6 +455,10 @@ function WireGuardPageContent({ selectedServerId, selectedInterfaceId, allInterf
format: args.format,
dryRun: args.dryRun,
})
if (res.dryRun) {
toast.info("Конфигурация проверена без применения на роутер")
return
}
toast.success(
res.applied
? `Импортировано: ${res.applied.interfaceName} (+${res.applied.peersCreated} пиров)`