tint image optional
tint image optional
This commit is contained in:
parent
ad4c113c26
commit
3ebffb1128
5 changed files with 9 additions and 13 deletions
|
|
@ -1 +0,0 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 59 27" style="enable-background:new 0 0 59 27" xml:space="preserve"><path d="M55.8 26.5H3.2c-1.5 0-2.7-1.2-2.7-2.7V3.2C.5 1.7 1.7.5 3.2.5h52.5c1.5 0 2.7 1.2 2.7 2.7v20.6c.1 1.5-1.2 2.7-2.6 2.7z" style="fill-rule:evenodd;clip-rule:evenodd;fill:#cbddde;stroke:#000"/></svg>
|
||||
|
Before Width: | Height: | Size: 324 B |
|
|
@ -1 +1,3 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 59 27" style="enable-background:new 0 0 59 27" xml:space="preserve"><path d="M55.8 26.5H3.2c-1.5 0-2.7-1.2-2.7-2.7V3.2C.5 1.7 1.7.5 3.2.5h52.5c1.5 0 2.7 1.2 2.7 2.7v20.6c.1 1.5-1.2 2.7-2.6 2.7z" style="fill-rule:evenodd;clip-rule:evenodd;fill:#cbe9dd;stroke:#000"/></svg>
|
||||
<svg width="104" height="40" viewBox="0 0 104 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M78.25 33H25.7083C24.2188 33 23 31.7812 23 30.2917V9.70833C23 8.21874 24.2188 7 25.7083 7H78.25C79.7396 7 80.9583 8.21874 80.9583 9.70833V30.2917C80.9583 31.7812 79.7396 33 78.25 33Z" fill="#CBE9DD" stroke="black"/>
|
||||
</svg>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 324 B After Width: | Height: | Size: 370 B |
|
|
@ -33,7 +33,6 @@ const tintMap = {
|
|||
{ name: "green tint", src: "Glass-NoShade-GreenTint.svg" },
|
||||
{ name: "gray tint privacy", src: "Glass-NoShade-GrayTint.svg" },
|
||||
{ name: "blue tint", src: "Glass-NoShade-BlueTint.svg" },
|
||||
{ name: "green tint privacy", src: "Glass-NoShade-GreenTint-Privacy.svg" },
|
||||
|
||||
// No shade or tint
|
||||
{ name: "clear", src: "Glass-NoShade-NoTint.svg" },
|
||||
|
|
|
|||
|
|
@ -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