|
|
|
@@ -74,6 +74,10 @@ export class NewTaskComponent implements OnInit, AfterViewInit { |
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
this.taskForm = FormGroupInitializer.initFormGroup(this.taskForm, this.task); |
|
|
|
if (this.taskForm.get('dueAt')?.value !== null) { |
|
|
|
this.taskForm.get('dueAt')?.setValue(this.taskForm.value.dueAt.slice(0, 10)); |
|
|
|
this.dueAtValue = this.taskForm.get('dueAt')?.value; |
|
|
|
} |
|
|
|
const prio = this.taskForm.get('prio'); |
|
|
|
// Set first radio checked |
|
|
|
if (prio && !prio.value) { |
|
|
|
|