мои задачи

This commit is contained in:
2026-02-13 17:29:50 +05:00
parent 28eae745d4
commit 98e028fe19
3 changed files with 763 additions and 12 deletions

View File

@@ -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')",