feat(админка): возврат в чат из шапки и открытие диалогов пользователей

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
anor
2026-11-11 16:39:39 +10:00
co-authored by Claude Code
parent fd253de8a5
commit ae5386a5a6
7 changed files with 172 additions and 5 deletions
+3
View File
@@ -102,6 +102,9 @@ function DialogsTab() {
{key: 'last_question', label: 'Последний вопрос', render: (r) => String(r.last_question || '').slice(0, 120)},
{key: 'last_ts', label: 'Был(а)', render: (r) => new Date(r.last_ts * 1000).toLocaleString('ru-RU')},
{key: 'msg_count', label: 'Сообщений', num: true},
{key: 'open', label: 'Открыть', render: (r) => html`<a href=${'/?tab=' +
encodeURIComponent(r.tab_id) + '&owner=' + encodeURIComponent(r.username)}
target="_blank" rel="noopener noreferrer">Открыть</a>`},
]} />`;
}