commit
0526a36f3c
1 changed files with 22 additions and 15 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<p class="mb-0">{{ colorQuestionText }}</p>
|
<p class="mb-0 color-question-text">{{ colorQuestionText }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -168,23 +168,25 @@ export default {
|
||||||
// Check if only a single part is present for the tint and set the v-model if it is.
|
// Check if only a single part is present for the tint and set the v-model if it is.
|
||||||
AutoSelectIfSinglePart() {
|
AutoSelectIfSinglePart() {
|
||||||
// Check if the selected tint only has a single feature
|
// Check if the selected tint only has a single feature
|
||||||
Object.keys(this.PartDataFromApi.partsOrQuestions ?? {}).forEach((key) => {
|
Object.keys(this.PartDataFromApi.partsOrQuestions ?? {}).forEach(
|
||||||
const currentGlassSelection =
|
(key) => {
|
||||||
this.PartDataFromApi.partsOrQuestions[key];
|
const currentGlassSelection =
|
||||||
|
this.PartDataFromApi.partsOrQuestions[key];
|
||||||
|
|
||||||
if (
|
if (
|
||||||
currentGlassSelection.glassName === this.glassName &&
|
currentGlassSelection.glassName === this.glassName &&
|
||||||
currentGlassSelection.glassLocation === this.glassLocation
|
currentGlassSelection.glassLocation === this.glassLocation
|
||||||
) {
|
) {
|
||||||
if (currentGlassSelection.parts.length === 1) {
|
if (currentGlassSelection.parts.length === 1) {
|
||||||
this.selectedPart = {
|
this.selectedPart = {
|
||||||
[currentGlassSelection.glassLocation]: [
|
[currentGlassSelection.glassLocation]: [
|
||||||
currentGlassSelection.parts[0].partNumber,
|
currentGlassSelection.parts[0].partNumber,
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
// Loads the preselected values from the store.
|
// Loads the preselected values from the store.
|
||||||
|
|
@ -227,4 +229,9 @@ export default {
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.color-question-text {
|
||||||
|
color: $black;
|
||||||
|
font-weight: $font-weight-bold;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue