Block advancing past vehicle page until carId is also retrieved
This commit is contained in:
parent
87bac3566f
commit
241783cb88
1 changed files with 10 additions and 1 deletions
|
|
@ -60,7 +60,7 @@
|
||||||
<navbar
|
<navbar
|
||||||
cmsWidgetName="FunnelFooterWidget"
|
cmsWidgetName="FunnelFooterWidget"
|
||||||
@ForwardClicked="forwardButtonAction"
|
@ForwardClicked="forwardButtonAction"
|
||||||
:isForwardActionDisabled="!meta.valid"
|
:isForwardActionDisabled="!meta.valid || !allDataRetrieved"
|
||||||
ref="navbar" />
|
ref="navbar" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -294,6 +294,15 @@ export default {
|
||||||
else if (this.imageUrl == null && this.carId !== null) return false;
|
else if (this.imageUrl == null && this.carId !== null) return false;
|
||||||
else return true;
|
else return true;
|
||||||
},
|
},
|
||||||
|
allDataRetrieved() {
|
||||||
|
return (
|
||||||
|
!!this.selectedYear &&
|
||||||
|
!!this.selectedMake &&
|
||||||
|
!!this.selectedModel &&
|
||||||
|
!!this.selectedStyle &&
|
||||||
|
!!this.carId
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getVehicle(year, make, model, style) {
|
getVehicle(year, make, model, style) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue