From dfeb5d02723bd269e10522671eae5eb98025e161 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Mon, 27 Jan 2020 16:37:10 -0500 Subject: [PATCH] [+] Create method to get completion status color #3 --- src/logic/course.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/logic/course.ts b/src/logic/course.ts index c0610a2..9946846 100644 --- a/src/logic/course.ts +++ b/src/logic/course.ts @@ -81,6 +81,18 @@ export class Assignment } } + /** + * Get the text color of the problem + */ + get problemColor() + { + switch (this.complete) + { + case 'Late': return '#ff0036'; + case 'NREQ': return '#41b141'; + } + } + /** * Add callback *