Merge pull request #1741 from Safelite/feature/Digital/CSR-1438.3
addOptionalText
This commit is contained in:
commit
68eae50b40
6 changed files with 8 additions and 7 deletions
|
|
@ -121,9 +121,10 @@ export default {
|
|||
hideInput: Boolean,
|
||||
centerErrorMessage: Boolean,
|
||||
keyDownHandler: Function,
|
||||
isEmailOptional: {
|
||||
addOptionalText: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
isRequired: false,
|
||||
},
|
||||
},
|
||||
setup(props) {
|
||||
|
|
@ -197,7 +198,7 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
questionText() {
|
||||
return this.isEmailOptional
|
||||
return this.addOptionalText
|
||||
? this.getCmsContent(this.cmsWidgetName, "QuestionText") + " (optional)"
|
||||
: this.getCmsContent(this.cmsWidgetName, "QuestionText");
|
||||
},
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
ref="customerQuestions"
|
||||
v-model="customerQuestions"
|
||||
:validationRules="EmailValidationRules"
|
||||
:isEmailOptional="IsEmailOptional" />
|
||||
:addOptionalText="IsEmailOptional" />
|
||||
|
||||
<alert
|
||||
ref="alertVinNotFound"
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
customInputId="emailAddress"
|
||||
:isRequired="!isEmailOptional"
|
||||
:validationRules="validationRules"
|
||||
:isEmailOptional="isEmailOptional" />
|
||||
:addOptionalText="isEmailOptional" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-0">
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@
|
|||
:isRequired="!IsEmailOptional"
|
||||
disableAutoFill
|
||||
:validationRules="EmailValidationRules"
|
||||
:isEmailOptional="IsEmailOptional" />
|
||||
:addOptionalText="IsEmailOptional" />
|
||||
<textBlock cmsWidgetName="QuoteEmailTextBlockWidget" typeStyle="caption" />
|
||||
|
||||
<alert
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
customInputId="email"
|
||||
:isRequired="!IsEmailOptional"
|
||||
:validationRules="EmailValidationRules"
|
||||
:isEmailOptional="IsEmailOptional" />
|
||||
:addOptionalText="IsEmailOptional" />
|
||||
|
||||
<textBlock cmsWidgetName="QuoteEmailTextBlockWidget" typeStyle="caption" />
|
||||
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@
|
|||
customInputId="emailAddress"
|
||||
:isRequired="!IsEmailOptional"
|
||||
:validationRules="EmailValidationRules"
|
||||
:isEmailOptional="IsEmailOptional" />
|
||||
:addOptionalText="IsEmailOptional" />
|
||||
|
||||
<textBlock cmsWidgetName="QuoteEmailTextBlockWidget" typeStyle="caption" />
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue