Login button: open Telegram bot deep-link, no modal; label switches to 'Approve in Telegram' and locks

This commit is contained in:
Kato
2026-09-05 18:53:44 +00:00
parent 13b1b773c6
commit 3d1b577cb1
3 changed files with 12 additions and 3 deletions
+5 -2
View File
@@ -94,11 +94,14 @@ document.addEventListener('DOMContentLoaded', () => {
}
});
// Login button
// Login button — opens Telegram bot deep-link, then locks itself
const loginBtn = document.getElementById('login-btn');
if (loginBtn) {
loginBtn.addEventListener('click', () => {
openLoginModal();
// No modal: swap label, drop the link, make the button unclickable
loginBtn.innerHTML = 'Approve in Telegram';
loginBtn.removeAttribute('href');
loginBtn.classList.add('btn-locked');
});
}