закрыть заявку
This commit is contained in:
@@ -141,10 +141,16 @@ if (typeof openChangeDeadlineModal === 'function') { actions.push({ label: '📅
|
|||||||
log('nav-task-actions openChangeDeadlineModal yes');
|
log('nav-task-actions openChangeDeadlineModal yes');
|
||||||
} else {log('nav-task-actions openChangeDeadlineModal not');}
|
} 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 (canEdit && !isDeleted && !isClosed && currentUser.role === 'admin') {
|
||||||
if (typeof deleteTask === 'function') actions.push({ label: '🗑️ Удалить', handler: () => deleteTask(taskId) });
|
if (typeof deleteTask === 'function') actions.push({ label: '🗑️ Удалить', handler: () => deleteTask(taskId) });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentUser && currentUser.login === 'minicrm') {
|
if (currentUser && currentUser.login === 'minicrm') {
|
||||||
// Закрытие (только minicrm)
|
// Закрытие (только minicrm)
|
||||||
//if (window.currentUser && window.currentUser.login === 'minicrm') {
|
//if (window.currentUser && window.currentUser.login === 'minicrm') {
|
||||||
|
|||||||
Reference in New Issue
Block a user