diff --git a/matsen-tool/src/app/_views/tasks/new-task-note/new-task-note.component.html b/matsen-tool/src/app/_views/tasks/new-task-note/new-task-note.component.html index 08d0daf..b6eae5f 100644 --- a/matsen-tool/src/app/_views/tasks/new-task-note/new-task-note.component.html +++ b/matsen-tool/src/app/_views/tasks/new-task-note/new-task-note.component.html @@ -24,7 +24,7 @@

{{ 'form.contact-type' | translate }}:

-
+
diff --git a/matsen-tool/src/app/_views/tasks/new-task/new-task.component.html b/matsen-tool/src/app/_views/tasks/new-task/new-task.component.html index 740f399..cde2523 100644 --- a/matsen-tool/src/app/_views/tasks/new-task/new-task.component.html +++ b/matsen-tool/src/app/_views/tasks/new-task/new-task.component.html @@ -59,15 +59,18 @@
-
- - -
- {{ 'form.prio' | translate }} {{ 'form.mandatory' | translate }}. +
+
+ + +
+
+ + +
+
+ +
diff --git a/matsen-tool/src/app/_views/tasks/new-task/new-task.component.ts b/matsen-tool/src/app/_views/tasks/new-task/new-task.component.ts index ee549c4..3fd259a 100644 --- a/matsen-tool/src/app/_views/tasks/new-task/new-task.component.ts +++ b/matsen-tool/src/app/_views/tasks/new-task/new-task.component.ts @@ -74,6 +74,11 @@ export class NewTaskComponent implements OnInit, AfterViewInit { ngOnInit(): void { this.taskForm = FormGroupInitializer.initFormGroup(this.taskForm, this.task); + const prio = this.taskForm.get('prio'); + // Set first radio checked + if (prio && !prio.value) { + prio.patchValue('low'); + } } ngAfterViewInit(): void { diff --git a/matsen-tool/src/app/_views/tasks/task-list/task-list.component.html b/matsen-tool/src/app/_views/tasks/task-list/task-list.component.html index 26b6bef..c3de6c2 100644 --- a/matsen-tool/src/app/_views/tasks/task-list/task-list.component.html +++ b/matsen-tool/src/app/_views/tasks/task-list/task-list.component.html @@ -13,110 +13,112 @@
{{ 'overview.compact-view' | translate }}
-
{{ 'overview.show-done' | translate }} +
{{ 'overview.show-done' | translate }}
-
- -
-
-
-
- - {{ task.dueAt | date:'dd.MM.YYYY - HH:mm':'GMT+0000' }} - Uhr -

+ + +
+
+
+
+
+ + {{ task.dueAt | date:'dd.MM.YYYY - HH:mm':'GMT+0000' }} + Uhr +

+ +

+

+ +

+

+ +

+
+
+
+
+
+

{{ task.headline }}

+
+
+

+ +
+ + {{ 'basic.hide-comments' | translate }} + {{ 'basic.show-comments' | translate }} + ({{ task.numTaskNotes }}) + + {{ 'basic.comment-it' | translate }} +
+
+
+
+
+
+
+ {{ task.dueAt | date:'dd.MM.YYYY - HH:mm':'GMT+0000' }} Uhr +

-

+

-

+

-
-
-
-
-

{{ task.headline }}

-
-
-

- -
- - {{ 'basic.hide-comments' | translate }} - {{ 'basic.show-comments' | translate }} - ({{ task.numTaskNotes }}) - - {{ 'basic.comment-it' | translate }} -
-
-
-
-
-
-
- {{ task.dueAt | date:'dd.MM.YYYY - HH:mm':'GMT+0000' }} Uhr -

- -

-

- -

-

- -

-
-
- -

{{ task.headline }}

-

- -
- - {{ 'basic.hide-comments' | translate }} - {{ 'basic.show-comments' | translate }} - ({{ task.numTaskNotes }}) - - {{ 'basic.comment-it' | translate }} +
+ +

{{ task.headline }}

+

+ +
+ + {{ 'basic.hide-comments' | translate }} + {{ 'basic.show-comments' | translate }} + ({{ task.numTaskNotes }}) + + {{ 'basic.comment-it' | translate }} +
-
-
-
-
-
-

{{ taskNote.owner?.firstName }} {{ taskNote.owner?.lastName }} - {{ getTranslationKey(taskNote.contactType) | translate }}

-

{{ taskNote.createdAt | date:'dd.MM.YYYY - HH:mm':'GMT+0000' }} Uhr

+
+
+
+
+

{{ taskNote.owner?.firstName }} {{ taskNote.owner?.lastName }} - {{ getTranslationKey(taskNote.contactType) | translate }}

+

{{ taskNote.createdAt | date:'dd.MM.YYYY - HH:mm':'GMT+0000' }} Uhr

+
+
+

+
+
-
-

-
-
-
+
\ No newline at end of file diff --git a/matsen-tool/src/app/_views/tasks/task-list/task-list.component.ts b/matsen-tool/src/app/_views/tasks/task-list/task-list.component.ts index 600990a..4709bbe 100644 --- a/matsen-tool/src/app/_views/tasks/task-list/task-list.component.ts +++ b/matsen-tool/src/app/_views/tasks/task-list/task-list.component.ts @@ -34,7 +34,7 @@ export class TaskListComponent implements OnInit, AfterViewInit { protected tasks: Array; protected dataSource; protected taskCompactMode: boolean; - protected taskHideCompleted: boolean; + protected showCompletedTasks: boolean; protected taskNotes: Map; protected taskSub: Subscription; @@ -59,10 +59,10 @@ export class TaskListComponent implements OnInit, AfterViewInit { } else { this.taskCompactMode = false; } - if (localStorage.getItem('taskHideDone') !== null) { - this.taskHideCompleted = localStorage.getItem('taskHideDone') === 'true'; + if (localStorage.getItem('showCompletedTasks') !== null) { + this.showCompletedTasks = localStorage.getItem('showCompletedTasks') === 'true'; } else { - this.taskHideCompleted = false; + this.showCompletedTasks = false; } } @@ -169,8 +169,8 @@ export class TaskListComponent implements OnInit, AfterViewInit { this.taskCompactMode = !this.taskCompactMode; } - switchTaskHideDone() { - localStorage.setItem('taskHideCompleted', this.taskHideCompleted ? 'false' : 'true'); - this.taskHideCompleted = !this.taskHideCompleted; + switchTaskHideCompleted() { + localStorage.setItem('showCompletedTasks', this.showCompletedTasks ? 'false' : 'true'); + this.showCompletedTasks = !this.showCompletedTasks; } } diff --git a/matsen-tool/src/assets/scss/_tasks-posts.scss b/matsen-tool/src/assets/scss/_tasks-posts.scss index 2dd61e0..9117020 100644 --- a/matsen-tool/src/assets/scss/_tasks-posts.scss +++ b/matsen-tool/src/assets/scss/_tasks-posts.scss @@ -66,7 +66,7 @@ border: 1px solid rgb(33, 37, 41); } &.taskCompactMode, - &.taskHideDone { + &.taskHideCompleted { &:after { content: ""; position: absolute;