Merge branch 'develop' into feature/CSR-1389

This commit is contained in:
Chloe Herd 2023-09-07 17:09:47 -04:00
commit 1f459e9cca

View file

@ -121,8 +121,6 @@ export default {
makeOptions: [],
modelOptions: [],
styleOptions: [],
//flag to check getVehicle action in progress
vehicleInProgress: false,
};
},
@ -279,14 +277,13 @@ export default {
},
async selectedStyle(style) {
if (style) {
this.vehicleInProgress = true;
this.carId = null;
const result = await this.getVehicle(
this.selectedYear,
this.selectedMake,
this.selectedModel,
style
);
this.vehicleInProgress = false;
this.carId = result?.data.carId;
this.category = result?.data.category;
this.imageUrl = result?.data.imageUrl;
@ -299,12 +296,12 @@ export default {
},
computed: {
unmatchedVehicleIcon() {
if (this.imageUrl == null) return true;
if (this.imageUrl == null && this.carId !== null) return true;
else return false;
},
displayGeneric() {
if (!this.selectedStyle) return true;
else if (this.vehicleInProgress) return true;
else if (this.carId == null) return true;
else if (this.imageUrl == null && this.carId !== null) return false;
else return true;
},