diff --git a/templates/index.html b/templates/index.html index dd18c3c..5caa479 100644 --- a/templates/index.html +++ b/templates/index.html @@ -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 }), });