fix(ui): проверять подтверждение импорта WireGuard
This commit is contained in:
1 parent
f980619046
commit
efc6da1249
6 files changed
+60
-5
No files matched your search
@@ -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} пиров)`
|
||||
|
||||
Reference in new issue
Block a user