мои задачи
This commit is contained in:
@@ -20,20 +20,32 @@ function createNavigation() {
|
||||
text: "Главная",
|
||||
id: "home-btn"
|
||||
},
|
||||
|
||||
];
|
||||
navButtons.push(
|
||||
{
|
||||
onclick: "showSection('tasks')",
|
||||
className: "nav-btn tasks",
|
||||
icon: "fas fa-list",
|
||||
text: "Задачи",
|
||||
text: "Все задачи",
|
||||
id: "tasks-btn"
|
||||
},
|
||||
{
|
||||
onclick: "showSection('mytasks')",
|
||||
className: "nav-btn my-tasks",
|
||||
icon: "fas fa-user-edit",
|
||||
text: "Мои задачи",
|
||||
id: "my-tasks-btn"
|
||||
},
|
||||
{
|
||||
onclick: "showSection('create-task')",
|
||||
className: "nav-btn create",
|
||||
icon: "fas fa-plus-circle",
|
||||
text: "Создать задачу",
|
||||
id: "create-task-btn"
|
||||
},
|
||||
}
|
||||
);
|
||||
navButtons.push(
|
||||
{
|
||||
onclick: "showKanbanSection()",
|
||||
className: "nav-btn kanban",
|
||||
@@ -48,17 +60,8 @@ function createNavigation() {
|
||||
text: "Личный кабинет",
|
||||
id: "profile-btn"
|
||||
}
|
||||
];
|
||||
);
|
||||
|
||||
if (currentUser && currentUser.role === 'admin') {
|
||||
navButtons.push({
|
||||
onclick: "showSection('mytasks')",
|
||||
className: "nav-btn my-tasks",
|
||||
icon: "fas fa-user-edit",
|
||||
text: "Мои задачи (Автор)",
|
||||
id: "my-tasks-btn"
|
||||
});
|
||||
}
|
||||
if (currentUser && currentUser.role === 'admin') {
|
||||
navButtons.push({
|
||||
onclick: "showSection('runtasks')",
|
||||
|
||||
Reference in New Issue
Block a user