ソースを参照

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


読み込み中…
キャンセル
保存