소스 검색

task: set date field on edit

master
Florian Eisenmenger 1 년 전
부모
커밋
cdaf12845f
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. +4
    -0
      matsen-tool/src/app/_views/tasks/new-task/new-task.component.ts

+ 4
- 0
matsen-tool/src/app/_views/tasks/new-task/new-task.component.ts 파일 보기

@@ -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) {


불러오는 중...
취소
저장