Skip to content

Instantly share code, notes, and snippets.

@dperrymorrow
Created November 20, 2017 23:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dperrymorrow/9e5ac59d5ed11753eb2639c9918d374f to your computer and use it in GitHub Desktop.
Save dperrymorrow/9e5ac59d5ed11753eb2639c9918d374f to your computer and use it in GitHub Desktop.
<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