From 2660f3a407f22e4fe226037a41b7077f164d291f Mon Sep 17 00:00:00 2001 From: Niggl Date: Mon, 8 Jun 2020 12:53:48 +0200 Subject: [PATCH] Added priotity to Task --- src/app/services/backend.service.ts | 8 +++++++- src/app/task-list/task-list.component.html | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/app/services/backend.service.ts b/src/app/services/backend.service.ts index d023a1b..39e2395 100644 --- a/src/app/services/backend.service.ts +++ b/src/app/services/backend.service.ts @@ -36,11 +36,17 @@ export class BackendService { } +enum Priority { + High="high", + Middle="middle", + Low="low" +} + //enum prio{high, middle, low}; --> noch nicht im backend export interface Task { id?: number; title: string; - //prio; --> noch nicht im backend + priority?: Priority; content?: string; status?: number; category?: number; diff --git a/src/app/task-list/task-list.component.html b/src/app/task-list/task-list.component.html index 269ec70..1f501a3 100644 --- a/src/app/task-list/task-list.component.html +++ b/src/app/task-list/task-list.component.html @@ -5,6 +5,8 @@ Titel: {{task.title}}
Inhalt: {{task.content}} +
+ Priotität: {{task.priority}}