чат
This commit is contained in:
@@ -1,7 +1,22 @@
|
||||
// task-endpoints.js
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
|
||||
// Функция для добавления кнопки чата в HTML задачи
|
||||
function addChatButtonToTask(taskElement, taskId) {
|
||||
const chatButton = document.createElement('button');
|
||||
chatButton.className = 'task-chat-btn';
|
||||
chatButton.innerHTML = '💬 Чат';
|
||||
chatButton.onclick = (e) => {
|
||||
e.stopPropagation();
|
||||
openTaskChat(taskId);
|
||||
};
|
||||
|
||||
// Добавляем кнопку в шапку задачи или в actions
|
||||
const header = taskElement.querySelector('.task-header');
|
||||
if (header) {
|
||||
header.appendChild(chatButton);
|
||||
}
|
||||
}
|
||||
function getApproverUsers(groupId) {
|
||||
return new Promise((resolve) => {
|
||||
db.all(`
|
||||
|
||||
Reference in New Issue
Block a user