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.

67 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-content>
  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-content>
  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. components: {
  41. TheSideBar,
  42. TheHeader
  43. },
  44. data() {
  45. return {
  46. drawerLeft: false
  47. }
  48. },
  49. computed: {
  50. ...mapGetters('projects', ['getLink', 'getCurrentUserRole'])
  51. },
  52. created() {
  53. this.setCurrentProject(this.$route.params.id)
  54. },
  55. methods: {
  56. ...mapActions('projects', ['setCurrentProject'])
  57. }
  58. }
  59. </script>