Merge pull request #3167 from Safelite/nation/CASH-699

CASH-699 do not allow future dates for date of loss
This commit is contained in:
CarlNation 2026-05-07 13:19:30 -04:00 committed by GitHub
commit ba5d6eec34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 1 deletions

View file

@ -27,6 +27,7 @@
:max-date="maxDate"
:auto-apply="autoApply"
:text-input="textInput"
:prevent-min-max-navigation="preventMinMaxNavigation"
:teleport="true"
:aria-labels="{ input: questionText }"
@update:model-value="onDateChange"
@ -106,6 +107,10 @@ export default {
type: Boolean,
default: false,
},
preventMinMaxNavigation: {
type: Boolean,
default: false,
},
questionAlignment: String,
labelBold: {
type: Boolean,

View file

@ -40,7 +40,9 @@
modelType="MM/dd/yyyy"
:enableTimePicker="false"
:clearable="false"
:textInput="true" />
:textInput="true"
:maxDate="today"
:preventMinMaxNavigation="true" />
<textboxQuestion
v-if="displayClaimNumber"
@ -198,6 +200,9 @@ export default {
},
computed: {
today() {
return new Date();
},
displayClaimNumber() {
const order = store.getters.order;