Merge pull request #1781 from Safelite/feature/Digital/CSR-1993
Feature/digital/csr 1993
This commit is contained in:
commit
8b7c319705
2 changed files with 6 additions and 10 deletions
|
|
@ -95,19 +95,14 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
tintSelectionOptions() {
|
tintSelectionOptions() {
|
||||||
let tintOptions = [];
|
const tintOptions = Object.keys(this.featureListData).map((tintOption) => {
|
||||||
|
const buttonImage = this.getTintSourceImage(this.glassLocation, tintOption);
|
||||||
Object.keys(this.featureListData).forEach((tintOption) => {
|
return {
|
||||||
tintOptions.push({
|
|
||||||
value: tintOption,
|
value: tintOption,
|
||||||
buttonLabel: tintOption,
|
buttonLabel: tintOption,
|
||||||
buttonImage: require(`@/assets/img/tints/${this.getTintSourceImage(
|
buttonImage: buttonImage ? require(`@/assets/img/tints/${buttonImage}`) : null,
|
||||||
this.glassLocation,
|
};
|
||||||
tintOption
|
|
||||||
)}`),
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return tintOptions;
|
return tintOptions;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
class="d-flex w-100 align-items-center px-2 h-100 list-card-content button-content rounded-3"
|
class="d-flex w-100 align-items-center px-2 h-100 list-card-content button-content rounded-3"
|
||||||
:class="labelClasses">
|
:class="labelClasses">
|
||||||
<img
|
<img
|
||||||
|
v-if="buttonImage"
|
||||||
:id="buttonImageId"
|
:id="buttonImageId"
|
||||||
:class="!isWide ? 'order-1' : 'ms-auto order-3'"
|
:class="!isWide ? 'order-1' : 'ms-auto order-3'"
|
||||||
:src="buttonImage"
|
:src="buttonImage"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue