You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.2 KiB

5 years ago
  1. <template>
  2. <v-app>
  3. <the-header>
  4. <template #leftDrawerIcon>
  5. <v-app-bar-nav-icon @click="drawerLeft = !drawerLeft" />
  6. </template>
  7. </the-header>
  8. <v-navigation-drawer
  9. v-model="drawerLeft"
  10. app
  11. clipped
  12. color=""
  13. >
  14. <the-side-bar
  15. :link="getLink"
  16. :role="getCurrentUserRole"
  17. />
  18. </v-navigation-drawer>
  19. <v-main>
  20. <v-container
  21. fluid
  22. fill-height
  23. >
  24. <v-layout
  25. justify-center
  26. >
  27. <v-flex fill-height>
  28. <nuxt />
  29. </v-flex>
  30. </v-layout>
  31. </v-container>
  32. </v-main>
  33. </v-app>
  34. </template>
  35. <script>
  36. import { mapActions, mapGetters } from 'vuex'
  37. import TheSideBar from '~/components/organisms/layout/TheSideBar'
  38. import TheHeader from '~/components/organisms/layout/TheHeader'
  39. export default {
  40. middleware: ['check-auth', 'auth', 'check-admin'],
  41. components: {
  42. TheSideBar,
  43. TheHeader
  44. },
  45. data() {
  46. return {
  47. drawerLeft: null
  48. }
  49. },
  50. computed: {
  51. ...mapGetters('projects', ['getLink', 'getCurrentUserRole'])
  52. },
  53. created() {
  54. this.setCurrentProject(this.$route.params.id)
  55. },
  56. methods: {
  57. ...mapActions('projects', ['setCurrentProject'])
  58. }
  59. }
  60. </script>