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:
commit
ba5d6eec34
2 changed files with 11 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue