Add routing values.
This commit is contained in:
parent
a54a36b8c7
commit
a01f0f456a
4 changed files with 7 additions and 6 deletions
|
|
@ -101,10 +101,12 @@ export default {
|
||||||
this.selectedQuery = value;
|
this.selectedQuery = value;
|
||||||
},
|
},
|
||||||
backButtonAction() {
|
backButtonAction() {
|
||||||
|
// Go back to Quote page
|
||||||
this.$router.navigateWithoutSaving(this.navigationScenarios.CLICKED_BACK, this.$route);
|
this.$router.navigateWithoutSaving(this.navigationScenarios.CLICKED_BACK, this.$route);
|
||||||
},
|
},
|
||||||
forwardButtonAction() {
|
forwardButtonAction() {
|
||||||
alert("Still needs to be wired up");
|
// Still needs wired up when insurance-details page is created
|
||||||
|
this.$router.navigateWithSaving(this.navigationScenarios.CLICKED_FORWARD, this.$route);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
@ -130,10 +132,11 @@ export default {
|
||||||
position: {
|
position: {
|
||||||
my: "left top+6",
|
my: "left top+6",
|
||||||
},
|
},
|
||||||
minLength: 0,
|
minLength: 0, // Necessary to display menu when clearing input
|
||||||
select: function (event, ui) {
|
select: function (event, ui) {
|
||||||
select(ui.item.value);
|
select(ui.item.value);
|
||||||
},
|
},
|
||||||
|
// Bold matching letters as you type in the input
|
||||||
search: function(event, ui) {
|
search: function(event, ui) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
let w = $(this).autocomplete("widget").find("div"),
|
let w = $(this).autocomplete("widget").find("div"),
|
||||||
|
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
describe("insurance", () => {
|
|
||||||
it.todo("Should render a normal string");
|
|
||||||
});
|
|
||||||
|
|
@ -12,6 +12,7 @@ const fmgPageValues = {
|
||||||
ADDRESS_VEHICLES: "address-vehicles",
|
ADDRESS_VEHICLES: "address-vehicles",
|
||||||
QUOTE: "quote",
|
QUOTE: "quote",
|
||||||
INSURANCE_LOOKUP: "insurance-lookup",
|
INSURANCE_LOOKUP: "insurance-lookup",
|
||||||
|
INSURANCE_DETAILS: "insurance-details",
|
||||||
SERVICE_LOCATION: "service-location",
|
SERVICE_LOCATION: "service-location",
|
||||||
HERITAGE: "heritage",
|
HERITAGE: "heritage",
|
||||||
SCHEDULE: "schedule",
|
SCHEDULE: "schedule",
|
||||||
|
|
|
||||||
|
|
@ -404,7 +404,7 @@ const routingTable = function (store) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
scenario: navigationScenarios.CLICKED_FORWARD,
|
scenario: navigationScenarios.CLICKED_FORWARD,
|
||||||
destinationFmgPageValue: fmgPageValues.SCHEDULE,
|
destinationFmgPageValue: fmgPageValues.INSURANCE_DETAILS,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue