diff --git a/src/constants/error-messages.js b/src/constants/error-messages.js index e1d23731..5be37825 100644 --- a/src/constants/error-messages.js +++ b/src/constants/error-messages.js @@ -52,6 +52,7 @@ const errorMessages = Object.freeze({ POLICYHOLDER_FIRST_NAME_REQUIRED: 'First name is required.', POLICYHOLDER_LAST_NAME_REQUIRED: 'Last name is required.', ACKNOWLEDGEMENT_REQUIRED: 'You must agree to the terms to continue', + NO_SELECTION_REQUIRED: 'Please select an option', YEAR_REQUIRED: 'Vehicle year is required.', MAKE_REQUIRED: 'Vehicle make is required.', diff --git a/src/constants/provider-preference.js b/src/constants/provider-preference.js new file mode 100644 index 00000000..291aaf97 --- /dev/null +++ b/src/constants/provider-preference.js @@ -0,0 +1,6 @@ +const PROVIDER_PREFERENCE_OPTIONS = Object.freeze({ + SAFELITE: 'SafeliteOption', + TPA: 'TPAOption' +}); + +export default PROVIDER_PREFERENCE_OPTIONS; \ No newline at end of file diff --git a/src/layouts/provider-preference/provider-preference.vue b/src/layouts/provider-preference/provider-preference.vue index 5b419319..95a66d96 100644 --- a/src/layouts/provider-preference/provider-preference.vue +++ b/src/layouts/provider-preference/provider-preference.vue @@ -23,7 +23,7 @@ class="full-width-button" variant="navigation" buttonText="Schedule now" - @clickEvent="forwardButtonAction(options.SAFELITE)" /> + @clickEvent="scheduleWithSafelite" />
@@ -32,9 +32,9 @@ linkType="navigation" text="Find another shop" href="#" - @clickEvent="forwardButtonAction(options.TPA)" /> + @clickEvent="findAnotherShopClicked" />