Fix bug that prevents hiding of objectives
This commit is contained in:
parent
b2f92ecbc7
commit
6af7201ab2
|
|
@ -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);
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue