Skip to content

Commit

Permalink
feat: 중요도 낮추기 메서드 구현 resolve #79
Browse files Browse the repository at this point in the history
  • Loading branch information
daeseong9388 committed Nov 24, 2022
1 parent 8d0cb49 commit 12e149a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/core/todo/todoList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ export class Todo implements InputTodo {
this.from = new Date(today.getFullYear(), today.getMonth(), today.getDate() + 1);
}

lowerImportance(): void {}
lowerImportance(): void {
this.importance = Math.max(this.importance - 1, 1);
}

setDone(): void {}

Expand Down Expand Up @@ -150,6 +152,7 @@ export class TodoList {
}

lowerImportance(): TodoList {
this.getActiveTodo().lowerImportance();
return new TodoList(this.todoList);
}

Expand Down

0 comments on commit 12e149a

Please sign in to comment.