From b1f6e5bf47e1ea5513e4790e6cc09ce30cc73fbc Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Wed, 7 Jul 2021 11:27:20 +0100 Subject: [PATCH] Improve publication validation --- .../shared/publication/edit-action/edit-action.page.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/shared/publication/edit-action/edit-action.page.ts b/src/app/shared/publication/edit-action/edit-action.page.ts index ecb6cb135..4de495f97 100644 --- a/src/app/shared/publication/edit-action/edit-action.page.ts +++ b/src/app/shared/publication/edit-action/edit-action.page.ts @@ -51,8 +51,12 @@ export class EditActionPage implements OnInit { } getPublicationDetail() { - this.publicationsService.GetPresidentialAction(this.folderId).subscribe(res=>{ - this.folder = res; + this.publicationsService.GetPresidentialAction(this.folderId).subscribe( res => { + this.folder = res; + + this.dateControlStart = new FormControl(moment(new Date(this.folder.DateBegin))); + this.dateControlEnd = new FormControl(moment(new Date(this.folder.DateEnd))); + }); }