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.

37 lines
743 B

  1. <template>
  2. <base-modal
  3. text="Show guideline"
  4. >
  5. <template v-if="currentProject" v-slot="slotProps">
  6. <guideline-card
  7. :guideline-text="currentProject.guideline"
  8. @close="slotProps.close"
  9. />
  10. </template>
  11. </base-modal>
  12. </template>
  13. <script>
  14. import { mapActions, mapGetters } from 'vuex'
  15. import BaseModal from '@/components/molecules/BaseModal'
  16. import GuidelineCard from '@/components/organisms/GuidelineCard'
  17. export default {
  18. components: {
  19. BaseModal,
  20. GuidelineCard
  21. },
  22. computed: {
  23. ...mapGetters('projects', ['currentProject'])
  24. },
  25. created() {
  26. this.setCurrentProject(this.$route.params.id)
  27. },
  28. methods: {
  29. ...mapActions('projects', ['setCurrentProject'])
  30. }
  31. }
  32. </script>