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.

51 lines
1007 B

4 years ago
  1. <template>
  2. <div style="display:inline;">
  3. <v-tooltip bottom>
  4. <template v-slot:activator="{ on }">
  5. <v-btn
  6. class="text-capitalize ps-1 pe-1"
  7. min-width="36"
  8. icon
  9. v-on="on"
  10. @click="dialog=true"
  11. >
  12. <v-icon>
  13. mdi-book-open-outline
  14. </v-icon>
  15. </v-btn>
  16. </template>
  17. <span>{{ $t('annotation.guidelineTooltip') }}</span>
  18. </v-tooltip>
  19. <v-dialog
  20. v-model="dialog"
  21. width="800"
  22. >
  23. <guideline-card
  24. v-if="currentProject"
  25. :guideline-text="currentProject.guideline"
  26. @close="dialog=false"
  27. />
  28. </v-dialog>
  29. </div>
  30. </template>
  31. <script>
  32. import { mapGetters } from 'vuex'
  33. import GuidelineCard from '@/components/organisms/annotation/GuidelineCard'
  34. export default {
  35. components: {
  36. GuidelineCard
  37. },
  38. data() {
  39. return {
  40. dialog: false
  41. }
  42. },
  43. computed: {
  44. ...mapGetters('projects', ['currentProject'])
  45. }
  46. }
  47. </script>