Merge pull request #1531 from Safelite/feature/CSR-1780-bugfix-ajc
CSR-1778: Fix to swap button positions
This commit is contained in:
commit
2812413f05
1 changed files with 7 additions and 7 deletions
|
|
@ -287,13 +287,6 @@ export default {
|
||||||
return answers[answerIndex];
|
return answers[answerIndex];
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!this.rainDefenseInCart) {
|
|
||||||
// NO RAIN DEFENSE IN CART; SHOW RAIN DEFENSE BUTTON
|
|
||||||
const modalData = getAnswer("RainDefenseModal", this.answersCmsData);
|
|
||||||
modalData.SubText = "+$" + this.rainDefenseModal?.listPrice;
|
|
||||||
buttons.push(modalData);
|
|
||||||
}
|
|
||||||
|
|
||||||
const modalData = getAnswer("WipersModal", this.answersCmsData);
|
const modalData = getAnswer("WipersModal", this.answersCmsData);
|
||||||
if (this.wipersOffered === wipersOfferedStrings.BOTH) {
|
if (this.wipersOffered === wipersOfferedStrings.BOTH) {
|
||||||
// NO REAR WIPERS or FRONT WIPERS IN CART; SHOW COMBO BUTTON
|
// NO REAR WIPERS or FRONT WIPERS IN CART; SHOW COMBO BUTTON
|
||||||
|
|
@ -318,6 +311,13 @@ export default {
|
||||||
buttons.push(modalData);
|
buttons.push(modalData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!this.rainDefenseInCart) {
|
||||||
|
// NO RAIN DEFENSE IN CART; SHOW RAIN DEFENSE BUTTON
|
||||||
|
const modalData = getAnswer("RainDefenseModal", this.answersCmsData);
|
||||||
|
modalData.SubText = "+$" + this.rainDefenseModal?.listPrice;
|
||||||
|
buttons.push(modalData);
|
||||||
|
}
|
||||||
|
|
||||||
return buttons;
|
return buttons;
|
||||||
},
|
},
|
||||||
wipersOfferedStrings() {
|
wipersOfferedStrings() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue