Created
November 20, 2017 23:56
-
-
Save dperrymorrow/9e5ac59d5ed11753eb2639c9918d374f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template lang="pug"> | |
.user-edit(v-if="dataLoaded") | |
//- your data is ready | |
</template> | |
<script> | |
import TethysVue from "@welocalize/tethys-vue"; | |
export default { | |
mixins: [TethysVue.mixins.routeData], | |
methods: { | |
async fetchRouteData() { | |
await Promise.all([ | |
this.$store.dispatch("roles/getAll"), | |
this.$store.dispatch("programs/getAll"), | |
this.$store.dispatch("taskTypes/getAll"), | |
this.$store.dispatch("locales/getAll"), | |
]); | |
}, | |
}, | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment