Update vehicle.vue
This commit is contained in:
parent
2fc7c57d40
commit
948473edcf
1 changed files with 3 additions and 3 deletions
|
|
@ -268,7 +268,7 @@ export default {
|
|||
const sameStyle = this.selectedStyle === this.styleOptions[0];
|
||||
this.selectedStyle = this.styleOptions[0];
|
||||
if (sameStyle) {
|
||||
this.getCarID();
|
||||
this.getVehicleDetails();
|
||||
}
|
||||
} else this.selectedStyle = null;
|
||||
} else {
|
||||
|
|
@ -278,7 +278,7 @@ export default {
|
|||
},
|
||||
async selectedStyle(style) {
|
||||
if (style) {
|
||||
this.getCarID();
|
||||
this.getVehicleDetails();
|
||||
} else {
|
||||
this.imageUrl = null;
|
||||
}
|
||||
|
|
@ -312,7 +312,7 @@ export default {
|
|||
arePagePrerequisitesValid() {
|
||||
return true;
|
||||
},
|
||||
async getCarID() {
|
||||
async getVehicleDetails() {
|
||||
this.carId = null;
|
||||
const result = await this.getVehicle(
|
||||
this.selectedYear,
|
||||
|
|
|
|||
Loading…
Reference in a new issue