bugfixes
This commit is contained in:
parent
4e9a5f3dd0
commit
37953c0db9
2 changed files with 6 additions and 2 deletions
|
|
@ -222,6 +222,7 @@ section {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: calc(100vw - 85px);
|
width: calc(100vw - 85px);
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
|
padding: 0 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
app-task {
|
app-task {
|
||||||
|
|
|
||||||
|
|
@ -45,8 +45,11 @@ export class BoardComponent {
|
||||||
const index = this.taskService.allTasks.findIndex((task) => task.id === id);
|
const index = this.taskService.allTasks.findIndex((task) => task.id === id);
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
this.taskService.allTasks[index].status = status;
|
this.taskService.allTasks[index].status = status;
|
||||||
if (this.taskService.filteredTasks.length > 0) {
|
const filteredIndex = this.taskService.filteredTasks.findIndex(
|
||||||
this.taskService.filteredTasks[index].status = status;
|
(task) => task.id === id
|
||||||
|
);
|
||||||
|
if (filteredIndex !== -1) {
|
||||||
|
this.taskService.filteredTasks[filteredIndex].status = status;
|
||||||
}
|
}
|
||||||
this.taskService.updateTask(id, index);
|
this.taskService.updateTask(id, index);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue