CSR-98 Try basic routing

This commit is contained in:
Oh 2022-03-01 12:18:56 -05:00
parent 96b1042d2b
commit 893544d709
3 changed files with 13 additions and 1 deletions

View file

@ -25,7 +25,7 @@
v-model="selectedRearReplaceOptions"
groupName="BackGlassReplaceOptionsQuestion"
/>
<funnelFooter ref="funnelFooter" @back-clicked="backButtonAction" />
<funnelFooter ref="funnelFooter" @back-clicked="backButtonAction" @forward-clicked="forwardButtonAction" />
</div>
</template>
@ -137,6 +137,13 @@ export default {
this.$route
);
},
forwardButtonAction() {
console.log("Get estimate!")
this.$router.navigate(
this.navigationScenarios.CLICKED_FORWARD,
this.$route
);
}
},
components: {
funnelHeader,

View file

@ -4,6 +4,7 @@ const navigationScenarios = {
SELECTED_MAKE: "SELECTED_MAKE",
SELECTED_STYLE: "SELECTED_STYLE",
CLICKED_BACK: "CLICKED_BACK",
CLICKED_FORWARD: "CLICKED_FORWARD"
};
export { navigationScenarios };

View file

@ -57,6 +57,10 @@ const routingTable = [
scenario: navigationScenarios.CLICKED_BACK,
destinationFmgPageValue: fmgPageValues.VEHICLE_STYLE,
},
{
scenario: navigationScenarios.CLICKED_FORWARD,
destinationUrl: "http://localhost:38000/default.aspx",
},
],
},
];