pulling navigation scenarios for button from js file

This commit is contained in:
Jason Wheeler 2022-09-21 15:39:39 -04:00
parent 8fe4d924cb
commit 1e5c966421
2 changed files with 17 additions and 4 deletions

View file

@ -1,12 +1,19 @@
<template>
<navButton text="back" scenario="CLICKED_BACK"></navButton>
<navButton text="back" v-bind:scenario="navigationScenarios.CLICKED_BACK"></navButton>
Vehicle Year Placeholder
</template>
<script>
import navButton from '../../common-components/nav-button/nav-button.vue';
import { navigationScenarios } from "@/router/router-constants/navigation-scenarios";
export default {
name: 'vehicle-year',
components: { navButton }
components: { navButton },
data: () => {
return {
navigationScenarios,
}
}
}
</script>

View file

@ -1,15 +1,21 @@
<template>
<p>Welcome Page Placeholder</p>
<br />
<navButton text="Next" scenario="CLICKED_FORWARD"></navButton>
<navButton text="Next" v-bind:scenario="navigationScenarios.CLICKED_FORWARD"></navButton>
</template>
<script>
import navButton from "../../common-components/nav-button/nav-button.vue";
import { navigationScenarios } from "@/router/router-constants/navigation-scenarios";
export default {
name: "welcome-page",
components: { navButton }
components: { navButton },
data: () => {
return {
navigationScenarios,
}
}
}
</script>