From a79be642f08468b280253310d8b7fc1161582e21 Mon Sep 17 00:00:00 2001 From: apuc Date: Wed, 16 Sep 2026 12:44:13 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20.hidden=20!important=20=E2=80=94=20?= =?UTF-8?q?=D0=BC=D0=BE=D0=B4=D0=B0=D0=BB=D0=BA=D0=B0=20=D0=BD=D0=B5=20?= =?UTF-8?q?=D0=B1=D1=8B=D0=BB=D0=B0=20=D1=81=D0=BA=D1=80=D1=8B=D1=82=D0=B0?= =?UTF-8?q?;=20=D0=B7=D0=B0=D1=89=D0=B8=D1=82=D0=B0=20=D0=BE=D1=82=20null-?= =?UTF-8?q?=D0=B0=D0=BA=D0=BA=D0=B0=D1=83=D0=BD=D1=82=D0=B0=20=D0=B2=20con?= =?UTF-8?q?firmSend/markDone?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }), });