diff --git a/src/layouts/insurance-lookup/insurance-lookup.vue b/src/layouts/insurance-lookup/insurance-lookup.vue index 2746c20c4..6e822ea3c 100644 --- a/src/layouts/insurance-lookup/insurance-lookup.vue +++ b/src/layouts/insurance-lookup/insurance-lookup.vue @@ -101,10 +101,12 @@ export default { this.selectedQuery = value; }, backButtonAction() { + // Go back to Quote page this.$router.navigateWithoutSaving(this.navigationScenarios.CLICKED_BACK, this.$route); }, 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() { @@ -130,10 +132,11 @@ export default { position: { my: "left top+6", }, - minLength: 0, + minLength: 0, // Necessary to display menu when clearing input select: function (event, ui) { select(ui.item.value); }, + // Bold matching letters as you type in the input search: function(event, ui) { setTimeout(() => { let w = $(this).autocomplete("widget").find("div"), diff --git a/src/layouts/insurance/insurance.spec.js b/src/layouts/insurance/insurance.spec.js deleted file mode 100644 index 3ad2b30cc..000000000 --- a/src/layouts/insurance/insurance.spec.js +++ /dev/null @@ -1,3 +0,0 @@ -describe("insurance", () => { - it.todo("Should render a normal string"); -}); diff --git a/src/router/router-constants/fmgPage-values.js b/src/router/router-constants/fmgPage-values.js index 880555ae8..4307867a3 100644 --- a/src/router/router-constants/fmgPage-values.js +++ b/src/router/router-constants/fmgPage-values.js @@ -12,6 +12,7 @@ const fmgPageValues = { ADDRESS_VEHICLES: "address-vehicles", QUOTE: "quote", INSURANCE_LOOKUP: "insurance-lookup", + INSURANCE_DETAILS: "insurance-details", SERVICE_LOCATION: "service-location", HERITAGE: "heritage", SCHEDULE: "schedule", diff --git a/src/router/router-constants/routing-table.js b/src/router/router-constants/routing-table.js index 161196eb4..0205d355d 100644 --- a/src/router/router-constants/routing-table.js +++ b/src/router/router-constants/routing-table.js @@ -404,7 +404,7 @@ const routingTable = function (store) { }, { scenario: navigationScenarios.CLICKED_FORWARD, - destinationFmgPageValue: fmgPageValues.SCHEDULE, + destinationFmgPageValue: fmgPageValues.INSURANCE_DETAILS, }, ], },