Fix bug that prevents hiding of objectives

This commit is contained in:
Ramon Wenger 2021-02-03 10:29:43 +01:00
parent b2f92ecbc7
commit 6af7201ab2
2 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@
import UserWidget from '@/components/UserWidget';
import MoreOptionsWidget from '@/components/MoreOptionsWidget';
import {mapGetters} from 'vuex';
import {mapState} from 'vuex';
import {isHidden} from '@/helpers/content-block';
import {meQuery} from '@/graphql/queries';
import DELETE_OBJECTIVE_MUTATION from '@/graphql/gql/mutations/deleteObjective.gql';
@ -50,7 +50,7 @@
},
computed: {
...mapGetters(['editModule']),
...mapState(['editModule']),
hidden() {
return isHidden(this.objective, this.schoolClass);
},

View File

@ -24,7 +24,7 @@
import ME_QUERY from '@/graphql/gql/meQuery.gql';
import AddContentButton from '@/components/AddContentButton';
import {mapGetters} from 'vuex';
import {mapState} from 'vuex';
export default {
props: {
@ -46,7 +46,7 @@
},
computed: {
...mapGetters(['editModule']),
...mapState(['editModule']),
canManageContent() {
return this.me.permissions.includes('users.can_manage_school_class_content');
},