Skip to content

Commit

Permalink
fix:#426 Notice publish date warning and adjustment disable date pick…
Browse files Browse the repository at this point in the history
…er manual input (#431)

* Disable manual input on date picker

* Wording change.
  • Loading branch information
ianliuwk1019 authored Jul 22, 2023
1 parent 8cdd2b9 commit 7b9003d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ <h4 class="modal-title">
bsDatepicker
[bsValue]="minDate"
[minDate]="minDate"
(keydown)="$event.preventDefault()"
[(ngModel)]="newCommentingClosedDate"
#nccdDatepicker="bsDatepicker"
id="newCommentingClosedDate"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export class PublicNoticeEditComponent implements OnInit, OnDestroy {
moment(this.minPostDate).isAfter(moment(this.project.commentingOpenDate))
) {
postDatePicker.toggle(); // bsDatepicker seems to have strange behaviour. hide() won't work, use toggle() instead.
this.modalSvc.openWarningDialog(`Commenting Start Date must be entered first or at least one day in the future before
this.modalSvc.openWarningDialog(`Commenting Start Date must be entered first and at least one day in the future before
Notice Publishing Date is available for selection.`);
}
}
Expand Down

0 comments on commit 7b9003d

Please sign in to comment.