Move windshield text logic to cms
This commit is contained in:
parent
3ee0f70f27
commit
0fa12ca01c
1 changed files with 1 additions and 7 deletions
|
|
@ -41,13 +41,7 @@ export default {
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
windshieldString() {
|
windshieldString() {
|
||||||
if (this.damage.isRepair) {
|
return this.getCmsContent("WindshieldDamageWidget", "Text");
|
||||||
return `Windshield repair - ${this.damage.numberOfChips} chip${
|
|
||||||
this.damage.numberOfChips !== 1 ? "s" : ""
|
|
||||||
}`;
|
|
||||||
} else {
|
|
||||||
return "Windshield crack";
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue