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() {
|
||||
let tintOptions = [];
|
||||
|
||||
Object.keys(this.featureListData).forEach((tintOption) => {
|
||||
tintOptions.push({
|
||||
const tintOptions = Object.keys(this.featureListData).map((tintOption) => {
|
||||
const buttonImage = this.getTintSourceImage(this.glassLocation, tintOption);
|
||||
return {
|
||||
value: tintOption,
|
||||
buttonLabel: tintOption,
|
||||
buttonImage: require(`@/assets/img/tints/${this.getTintSourceImage(
|
||||
this.glassLocation,
|
||||
tintOption
|
||||
)}`),
|
||||
});
|
||||
buttonImage: buttonImage ? require(`@/assets/img/tints/${buttonImage}`) : null,
|
||||
};
|
||||
});
|
||||
|
||||
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="labelClasses">
|
||||
<img
|
||||
v-if="buttonImage"
|
||||
:id="buttonImageId"
|
||||
:class="!isWide ? 'order-1' : 'ms-auto order-3'"
|
||||
:src="buttonImage"
|
||||
|
|
|
|||
Loading…
Reference in a new issue