From e0b3999d0ce35468e4fb028886782a386ca84be1 Mon Sep 17 00:00:00 2001 From: iRedTea Date: Fri, 16 Oct 2026 21:47:50 +0300 Subject: [PATCH] feat: a chat of the assistant is deleted at once, without asking --- internal/server/web/static/ai.js | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/server/web/static/ai.js b/internal/server/web/static/ai.js index fdc130b..5102c94 100644 --- a/internal/server/web/static/ai.js +++ b/internal/server/web/static/ai.js @@ -204,7 +204,6 @@ row.querySelector('.ai-chatopen').onclick = () => { openChat(c.id); toggleChats(false); }; row.querySelector('.ai-chatdel').onclick = async ev => { ev.stopPropagation(); - if (!await UI.confirm('Удалить чат «' + c.title + '»?', {ok: 'Удалить', danger: true})) return; await fetch('/api/panel/ai/chats/' + c.id + '/delete', {method: 'POST', credentials: 'same-origin'}); if (c.id === chatId) openChat(0); loadChats();