fix: .hidden !important — модалка не была скрыта; защита от null-аккаунта в confirmSend/markDone

This commit is contained in:
apuc committed 2026-09-16 12:44:13 +03:00
1 parent 963c29084c
commit a79be642f0
1 file changed
+3 -1
+3 -1
View File
@@ -67,7 +67,7 @@
border-radius: 8px; margin-bottom: 8px; background: var(--card); }
.account-item .name { font-weight: 600; }
.account-item .actions { display: flex; gap: 8px; }
.hidden { display: none; }
.hidden { display: none !important; }
.texts-panel textarea { min-height: 90px; margin-bottom: 8px; }
.texts-panel .item { margin-bottom: 14px; }
.texts-panel .item .title { font-weight: 600; margin-bottom: 4px; }
@@ -613,6 +613,7 @@ function closeShot() {
}
async function confirmSend() {
if (!currentAccount) { alert('Сначала выберите аккаунт'); return; }
const btn = document.getElementById('btn-send');
const note = document.getElementById('send-note');
btn.disabled = true; note.textContent = 'Отправляю...';
@@ -633,6 +634,7 @@ async function confirmSend() {
}
async function markDone(id) {
if (!currentAccount) { alert('Сначала выберите аккаунт'); return; }
await api(`/api/accounts/${currentAccount}/done`, {
method: 'POST', body: JSON.stringify({ id }),
});