diff --git a/src/fmg-components/nav-bar/nav-bar.vue b/src/fmg-components/nav-bar/nav-bar.vue index 6b0397762..96b67f44e 100644 --- a/src/fmg-components/nav-bar/nav-bar.vue +++ b/src/fmg-components/nav-bar/nav-bar.vue @@ -57,6 +57,7 @@ export default { buttonSize: { type: Boolean, default: false }, isSubmitHidden: { type: Boolean, default: false }, overrideButtonText: String, + overrideBackButtonText: String, }, components: { textLink, @@ -73,7 +74,10 @@ export default { }, computed: { backLink() { - return this.getCmsContent(this.cmsWidgetName, "BackButtonText"); + return ( + this.overrideBackButtonText || + this.getCmsContent(this.cmsWidgetName, "BackButtonText") + ); }, buttonText() { return this.customButtontext diff --git a/src/helpers/date-helper.js b/src/helpers/date-helper.js index 59ffa5745..f59ac7ba8 100644 --- a/src/helpers/date-helper.js +++ b/src/helpers/date-helper.js @@ -1,3 +1,15 @@ +// .NET serializes an unset DateTime as DateTime.MinValue ("0001-01-01T00:00:00"). +// Treat that as "no date" so it doesn't masquerade as a real, validation-passing value. +const DOTNET_MIN_DATE_PREFIX = "0001-01-01"; + +export function isDotNetMinDate(value) { + return typeof value === "string" && value.startsWith(DOTNET_MIN_DATE_PREFIX); +} + +export function normalizeDotNetMinDate(value) { + return isDotNetMinDate(value) ? null : value; +} + export function getDateDifferenceInDays(startDate, endDate) { // Create date objects from the input strings var date1 = new Date(endDate); diff --git a/src/layouts/policy-info/policy-info.vue b/src/layouts/policy-info/policy-info.vue index f5dcb5d96..10fb9d969 100644 --- a/src/layouts/policy-info/policy-info.vue +++ b/src/layouts/policy-info/policy-info.vue @@ -191,12 +191,15 @@ v-model="morePolicyQuestions" groupName="MorePolicyQuestionsQuestion" /> - +
+ +