Merge branch 'bug/brydon/SSR-1301' of https://github.com/Safelite/DigitalConsumer.ISS into bug/brydon/1302
This commit is contained in:
commit
e8cbae0f54
4 changed files with 23 additions and 12 deletions
|
|
@ -13,7 +13,9 @@
|
||||||
'small-question-text': isSmallQuestionText,
|
'small-question-text': isSmallQuestionText,
|
||||||
'small-question-label-text': isSmallQuestionLabelText,
|
'small-question-label-text': isSmallQuestionLabelText,
|
||||||
}">
|
}">
|
||||||
<span class="fw-bold w-100">{{ questionText }}</span>
|
<span
|
||||||
|
class="fw-bold w-100"
|
||||||
|
:class="questionTextClasses">{{ questionText }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-100 d-flex justify-content-center">
|
<div class="w-100 d-flex justify-content-center">
|
||||||
<fieldset
|
<fieldset
|
||||||
|
|
@ -115,6 +117,7 @@ export default {
|
||||||
groupName: String,
|
groupName: String,
|
||||||
questionText: String,
|
questionText: String,
|
||||||
answers: Array,
|
answers: Array,
|
||||||
|
questionTextClasses: Array,
|
||||||
textPosition: {
|
textPosition: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'text-center'
|
default: 'text-center'
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="hasSubText"
|
v-if="hasSubText"
|
||||||
class="subheader-secondary d-flex align-items-center overflow-hidden mt-2"
|
:class="[justifySubheader, subHeaderClasses, subHeaderMarginClasses]"
|
||||||
:class="[justifySubheader, subHeaderClasses]">
|
class="subheader-secondary d-flex align-items-center overflow-hidden">
|
||||||
<p
|
<p
|
||||||
class="dark-header"
|
class="dark-header"
|
||||||
:class="[alternateFormatting, subTextClasses]">
|
:class="[alternateFormatting, subTextClasses]">
|
||||||
|
|
@ -52,6 +52,10 @@ export default {
|
||||||
stripRteStyle: Boolean,
|
stripRteStyle: Boolean,
|
||||||
subContentProperty: String,
|
subContentProperty: String,
|
||||||
subHeaderClasses: String,
|
subHeaderClasses: String,
|
||||||
|
subHeaderMarginClasses: {
|
||||||
|
type: String,
|
||||||
|
default: 'mt-2'
|
||||||
|
},
|
||||||
subTextClasses: String
|
subTextClasses: String
|
||||||
},
|
},
|
||||||
emits: ['click-event'],
|
emits: ['click-event'],
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<Form @submit="onSubmit" @invalidSubmit="onInvalidSubmit">
|
<Form
|
||||||
|
@submit="onSubmit"
|
||||||
|
@invalidSubmit="onInvalidSubmit">
|
||||||
<div class="container-fluid fade-on-route-transition">
|
<div class="container-fluid fade-on-route-transition">
|
||||||
<div class="row justify-content-center">
|
<div class="row justify-content-center">
|
||||||
<div class="col-md-6 px-0 px-md-2">
|
<div class="col-md-6 px-0 px-md-2">
|
||||||
|
|
@ -15,7 +17,8 @@
|
||||||
:displayGenericVehicleImage="false" />
|
:displayGenericVehicleImage="false" />
|
||||||
<SiteSubHeader
|
<SiteSubHeader
|
||||||
cmsWidgetName="SiteSubHeaderWidget"
|
cmsWidgetName="SiteSubHeaderWidget"
|
||||||
class="mt-5 mb-2" />
|
class="mb-2"
|
||||||
|
subHeaderMarginClasses="mt-1" />
|
||||||
<VinLookupMethods
|
<VinLookupMethods
|
||||||
ref="VinLookupMethods"
|
ref="VinLookupMethods"
|
||||||
v-model="selectedVinLookupMethod"
|
v-model="selectedVinLookupMethod"
|
||||||
|
|
@ -57,7 +60,7 @@ export default {
|
||||||
SiteHeader,
|
SiteHeader,
|
||||||
SiteSubHeader,
|
SiteSubHeader,
|
||||||
VehicleBanner,
|
VehicleBanner,
|
||||||
VinLookupMethods,
|
VinLookupMethods
|
||||||
},
|
},
|
||||||
mixins: [BaseFormMixin],
|
mixins: [BaseFormMixin],
|
||||||
async beforeRouteEnter(to, from, next) {
|
async beforeRouteEnter(to, from, next) {
|
||||||
|
|
@ -67,8 +70,8 @@ export default {
|
||||||
const promiseResultMap = [
|
const promiseResultMap = [
|
||||||
{
|
{
|
||||||
resultKey: 'cmsContent',
|
resultKey: 'cmsContent',
|
||||||
promise: cmsContentPromise,
|
promise: cmsContentPromise
|
||||||
},
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
const resultMap = await settleAllPromises(promiseResultMap);
|
const resultMap = await settleAllPromises(promiseResultMap);
|
||||||
|
|
@ -80,13 +83,13 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
selectedVinLookupMethod: null,
|
selectedVinLookupMethod: null
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
isForwardActionDisabled() {
|
isForwardActionDisabled() {
|
||||||
return this.selectedVinLookupMethod === null;
|
return this.selectedVinLookupMethod === null;
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
arePagePrerequisiteValid() {
|
arePagePrerequisiteValid() {
|
||||||
|
|
@ -116,7 +119,7 @@ export default {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
resetDependentState() {},
|
resetDependentState() {}
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
groupName="VinLookupMethodsOption"
|
groupName="VinLookupMethodsOption"
|
||||||
buttonTypeString="listButton"
|
buttonTypeString="listButton"
|
||||||
:questionText="questionTextFromCms"
|
:questionText="questionTextFromCms"
|
||||||
|
:questionTextClasses="['text-center']"
|
||||||
isRequired
|
isRequired
|
||||||
:validationRules="rules.optionRequired"
|
:validationRules="rules.optionRequired"
|
||||||
data-test-id="vin-lookup-methods-button-question" />
|
data-test-id="vin-lookup-methods-button-question" />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue