закрыть заявку

This commit is contained in:
2026-03-18 09:58:11 +05:00
parent 0bbe55929b
commit fd1d4a66d2

View File

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