- {{ '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 }}
+
+
+
+
+
+
+
+
{{ task.dueAt | date:'dd.MM.YYYY - HH:mm':'GMT+0000' }} Uhr
+
-
+
-
+
-
-
-
-
-
{{ task.headline }}
-
-
-
-
-
-
-
-
{{ task.dueAt | date:'dd.MM.YYYY - HH:mm':'GMT+0000' }} Uhr
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ task.headline }}
-
-
-
-
-
-
\ 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;