From f66ddd69c508d956851982aa6df914b3b52573e8 Mon Sep 17 00:00:00 2001 From: Ian Liu <81595625+ianliuwk1019@users.noreply.github.com> Date: Mon, 8 Jan 2024 16:03:35 -0800 Subject: [PATCH] fix: #553 End of Operation Year Validation Fix. (#554) * Add conditional expression for @minDate; esentially, it becomes "equal or greater than" validator. * Remove unused import * Fix typo * Deployment trigger commits. --- .../app/foms/fom-add-edit/fom-add-edit.form.ts | 17 ++++++++++++++--- public/src/styles.scss | 2 +- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/admin/src/app/foms/fom-add-edit/fom-add-edit.form.ts b/admin/src/app/foms/fom-add-edit/fom-add-edit.form.ts index c08907375..3af7198d2 100644 --- a/admin/src/app/foms/fom-add-edit/fom-add-edit.form.ts +++ b/admin/src/app/foms/fom-add-edit/fom-add-edit.form.ts @@ -1,7 +1,8 @@ +import { AbstractControl } from '@angular/forms'; import { DistrictResponse, ForestClientResponse, ProjectResponse, WorkflowStateCode } from '@api-client'; -import { minLength, prop, required, minDate, maxLength } from '@rxweb/reactive-form-validators'; -import moment = require("moment"); +import { maxLength, minDate, minLength, prop, required } from '@rxweb/reactive-form-validators'; import * as R from 'remeda'; +import moment = require("moment"); const updateFields = [ 'name', @@ -57,7 +58,17 @@ export class FomAddEditForm implements Pick