pulling navigation scenarios for button from js file
This commit is contained in:
parent
8fe4d924cb
commit
1e5c966421
2 changed files with 17 additions and 4 deletions
|
|
@ -1,12 +1,19 @@
|
||||||
<template>
|
<template>
|
||||||
<navButton text="back" scenario="CLICKED_BACK"></navButton>
|
<navButton text="back" v-bind:scenario="navigationScenarios.CLICKED_BACK"></navButton>
|
||||||
Vehicle Year Placeholder
|
Vehicle Year Placeholder
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import navButton from '../../common-components/nav-button/nav-button.vue';
|
import navButton from '../../common-components/nav-button/nav-button.vue';
|
||||||
|
import { navigationScenarios } from "@/router/router-constants/navigation-scenarios";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'vehicle-year',
|
name: 'vehicle-year',
|
||||||
components: { navButton }
|
components: { navButton },
|
||||||
|
data: () => {
|
||||||
|
return {
|
||||||
|
navigationScenarios,
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -1,15 +1,21 @@
|
||||||
<template>
|
<template>
|
||||||
<p>Welcome Page Placeholder</p>
|
<p>Welcome Page Placeholder</p>
|
||||||
<br />
|
<br />
|
||||||
<navButton text="Next" scenario="CLICKED_FORWARD"></navButton>
|
<navButton text="Next" v-bind:scenario="navigationScenarios.CLICKED_FORWARD"></navButton>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import navButton from "../../common-components/nav-button/nav-button.vue";
|
import navButton from "../../common-components/nav-button/nav-button.vue";
|
||||||
|
import { navigationScenarios } from "@/router/router-constants/navigation-scenarios";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "welcome-page",
|
name: "welcome-page",
|
||||||
components: { navButton }
|
components: { navButton },
|
||||||
|
data: () => {
|
||||||
|
return {
|
||||||
|
navigationScenarios,
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue