удалить и другая красота

This commit is contained in:
2026-03-11 16:38:44 +05:00
parent ec5a1a898b
commit 76075da0ad
4 changed files with 298 additions and 169 deletions

View File

@@ -141,6 +141,9 @@ if (typeof openChangeDeadlineModal === 'function') { actions.push({ label: '📅
log('nav-task-actions openChangeDeadlineModal yes');
} else {log('nav-task-actions openChangeDeadlineModal not');}
}
if (canEdit && !isDeleted && !isClosed && currentUser.role === 'admin') {
if (typeof deleteTask === 'function') actions.push({ label: '🗑️ Удалить', handler: () => deleteTask(taskId) });
}
if (currentUser && currentUser.login === 'minicrm') {
// Закрытие (только minicrm)