fix: replace window.confirm with inline confirmation for unlink

window.confirm() is silently suppressed in Telegram Mini Apps and iOS
WebView, making unlink completely non-functional on mobile. Replaced
with two-click inline confirmation: first click shows destructive
"Confirm disconnect?" button, second click executes unlink. Button
resets on blur.
This commit is contained in:
Fringg
2026-03-04 15:30:00 +03:00
parent e447e993cb
commit d0c01a0e5c
5 changed files with 18 additions and 3 deletions

View File

@@ -3607,6 +3607,7 @@
"link": "Connect",
"unlink": "Disconnect",
"unlinkConfirm": "Are you sure? You won't be able to sign in with this service after disconnecting.",
"unlinkConfirmBtn": "Confirm disconnect?",
"cannotUnlinkLast": "Cannot disconnect the last sign-in method",
"linkSuccess": "Account connected successfully",
"unlinkSuccess": "Account disconnected successfully",