diff --git a/client/src/components/ContentBlock.vue b/client/src/components/ContentBlock.vue index 8be40fcb..d1e1efca 100644 --- a/client/src/components/ContentBlock.vue +++ b/client/src/components/ContentBlock.vue @@ -2,20 +2,13 @@
@@ -46,11 +39,11 @@ import DocumentBlock from '@/components/content-blocks/DocumentBlock'; import Assignment from '@/components/content-blocks/assignment/Assignment'; import AddContentBlockButton from '@/components/AddContentBlockButton'; - import VisibilityPopover from '@/components/VisibilityPopover'; + import VisibilityAction from '@/components/visibility/VisibilityAction'; import EyeIcon from '@/components/icons/EyeIcon'; import PenIcon from '@/components/icons/PenIcon'; import TrashIcon from '@/components/icons/TrashIcon'; - import ME_QUERY from '@/graphql/gql/meQuery.gql'; + import CHAPTER_QUERY from '@/graphql/gql/chapterQuery.gql'; import DELETE_CONTENT_BLOCK_MUTATION from '@/graphql/gql/mutations/deleteContentBlock.gql'; @@ -68,7 +61,7 @@ Assignment, Task, AddContentBlockButton, - VisibilityPopover, + VisibilityAction, EyeIcon, PenIcon, TrashIcon @@ -77,16 +70,10 @@ computed: { specialClass() { return `content-block--${this.contentBlock.type.toLowerCase()}` - }, - canManageContent() { - return this.me.permissions.includes('users.can_manage_school_class_content'); } }, methods: { - toggleVisibility() { - this.showVisibility = !this.showVisibility; - }, editContentBlock() { this.$store.dispatch('editContentBlock', this.contentBlock.id); }, @@ -118,18 +105,9 @@ } }, - apollo: { - me: { - query: ME_QUERY, - }, - }, - data() { return { - showVisibility: false, - me: { - permissions: [] - } + showVisibility: false } } } @@ -158,16 +136,6 @@ cursor: pointer; } - &__action-icon { - width: 40px; - height: 40px; - fill: $color-grey; - } - - &__visibility-menu { - top: 40px; - } - &--base_communication { @include content-box($color-accent-1); } diff --git a/client/src/components/modules/Module.vue b/client/src/components/modules/Module.vue index d15f8762..d12ed23c 100644 --- a/client/src/components/modules/Module.vue +++ b/client/src/components/modules/Module.vue @@ -8,28 +8,30 @@

Lernziele

- + + +

Alles klar?

- + + +
+ + diff --git a/client/src/components/modules/ObjectiveGroupControl.vue b/client/src/components/modules/ObjectiveGroupControl.vue index b45cf0b4..50fa615f 100644 --- a/client/src/components/modules/ObjectiveGroupControl.vue +++ b/client/src/components/modules/ObjectiveGroupControl.vue @@ -1,6 +1,6 @@