diff --git a/client/src/components/modules/Module.vue b/client/src/components/modules/Module.vue index a5380ef4..38d690cb 100644 --- a/client/src/components/modules/Module.vue +++ b/client/src/components/modules/Module.vue @@ -53,8 +53,8 @@ props: { module: { type: Object, - default: () => ({}) - } + default: () => ({}), + }, }, components: { BookmarkActions, @@ -65,15 +65,15 @@ computed: { languageCommunicationObjectiveGroups() { return this.module.objectiveGroups ? this.module.objectiveGroups - .filter(group => group.title === 'LANGUAGE_COMMUNICATION') : []; + .filter(group => group.title.toLowerCase() === 'language_communication') : []; }, societyObjectiveGroups() { return this.module.objectiveGroups ? this.module.objectiveGroups - .filter(group => group.title === 'SOCIETY') : []; + .filter(group => group.title.toLowerCase() === 'society') : []; }, interdisciplinaryObjectiveGroups() { return this.module.objectiveGroups ? this.module.objectiveGroups - .filter(group => group.title === 'INTERDISCIPLINARY') : []; + .filter(group => group.title.toLowerCase() === 'interdisciplinary') : []; }, isStudent() { return !this.me.permissions.includes('users.can_manage_school_class_content'); diff --git a/client/src/components/objective-groups/ObjectiveGroup.vue b/client/src/components/objective-groups/ObjectiveGroup.vue index 070fdcaf..d8c9aa92 100644 --- a/client/src/components/objective-groups/ObjectiveGroup.vue +++ b/client/src/components/objective-groups/ObjectiveGroup.vue @@ -62,7 +62,7 @@ return hidden({ block: this.group, schoolClass: this.schoolClass, - type: this.type + type: this.type, }); }, }, @@ -70,7 +70,7 @@