From 08cb2772eaee71da9f00a848e4e7adce834864d7 Mon Sep 17 00:00:00 2001 From: ewandor Date: Tue, 14 Mar 2023 15:59:23 +0100 Subject: [PATCH] Updating default value of contract create form --- front/app/src/app/views/contracts/drafts.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/front/app/src/app/views/contracts/drafts.component.ts b/front/app/src/app/views/contracts/drafts.component.ts index 0907bd81..6786f56f 100644 --- a/front/app/src/app/views/contracts/drafts.component.ts +++ b/front/app/src/app/views/contracts/drafts.component.ts @@ -105,18 +105,20 @@ export class DraftsNewComponent extends BaseDraftsComponent implements OnInit { ` }) export class DraftsCardComponent extends BaseDraftsComponent implements OnInit { - resource_id: string | null = null;templateModel: {} = {}; + resource_id: string | null = null; + templateModel: {} = {}; isReadyForPublication = false; newContractFormfields: FormlyFieldConfig[] = []; newContractForm: FormGroup = new FormGroup({}); newContractModel: any = { - date: formatDate(new Date(),'YYYY-MM-dd', 'EN_US', 'CET'), + date: new Date(), location: "Los Santos, SA", draft_id: null } fieldJson = { type: "object", + required: ["date", "location", "draft_id"], properties: { date: { type: "string",