瀏覽代碼

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


Loading…
取消
儲存