From 6af7201ab28abe7a47bee9754cc91cb621e4e835 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Wed, 3 Feb 2021 10:29:43 +0100 Subject: [PATCH] Fix bug that prevents hiding of objectives --- client/src/components/objective-groups/Objective.vue | 4 ++-- client/src/components/objective-groups/ObjectiveGroup.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/components/objective-groups/Objective.vue b/client/src/components/objective-groups/Objective.vue index cc9a625e..253c435d 100644 --- a/client/src/components/objective-groups/Objective.vue +++ b/client/src/components/objective-groups/Objective.vue @@ -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); }, diff --git a/client/src/components/objective-groups/ObjectiveGroup.vue b/client/src/components/objective-groups/ObjectiveGroup.vue index db4ec471..6aa6b22f 100644 --- a/client/src/components/objective-groups/ObjectiveGroup.vue +++ b/client/src/components/objective-groups/ObjectiveGroup.vue @@ -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'); },