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