From 12e149a397dc211ba0d1535683098ca98ba9d0c2 Mon Sep 17 00:00:00 2001 From: daeseong9388 Date: Thu, 24 Nov 2022 22:27:10 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=A4=91=EC=9A=94=EB=8F=84=20=EB=82=AE?= =?UTF-8?q?=EC=B6=94=EA=B8=B0=20=EB=A9=94=EC=84=9C=EB=93=9C=20=EA=B5=AC?= =?UTF-8?q?=ED=98=84=20resolve=20#79?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/core/todo/todoList.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/core/todo/todoList.ts b/client/src/core/todo/todoList.ts index 692e8f4..43e8ccc 100644 --- a/client/src/core/todo/todoList.ts +++ b/client/src/core/todo/todoList.ts @@ -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 {} @@ -150,6 +152,7 @@ export class TodoList { } lowerImportance(): TodoList { + this.getActiveTodo().lowerImportance(); return new TodoList(this.todoList); }