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.

64 lines
1.1 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 :link="getLink" />
  15. </v-navigation-drawer>
  16. <v-content>
  17. <v-container
  18. fluid
  19. fill-height
  20. >
  21. <v-layout
  22. justify-center
  23. >
  24. <v-flex fill-height>
  25. <nuxt />
  26. </v-flex>
  27. </v-layout>
  28. </v-container>
  29. </v-content>
  30. </v-app>
  31. </template>
  32. <script>
  33. import { mapActions, mapGetters } from 'vuex'
  34. import TheSideBar from '~/components/organisms/layout/TheSideBar'
  35. import TheHeader from '~/components/organisms/layout/TheHeader'
  36. export default {
  37. components: {
  38. TheSideBar,
  39. TheHeader
  40. },
  41. data() {
  42. return {
  43. drawerLeft: false
  44. }
  45. },
  46. computed: {
  47. ...mapGetters('projects', ['getLink'])
  48. },
  49. created() {
  50. this.setCurrentProject(this.$route.params.id)
  51. },
  52. methods: {
  53. ...mapActions('projects', ['setCurrentProject'])
  54. }
  55. }
  56. </script>