Move show-objectives to computed properties

This commit is contained in:
Lorenz Padberg 2024-02-13 11:15:54 +01:00
parent 216f448137
commit 95cf48717c
1 changed files with 2 additions and 5 deletions

View File

@ -67,7 +67,7 @@
<div
class="module__objective-groups"
v-if="module.objectiveGroups.length && showObjectives()"
v-if="module.objectiveGroups.length && showObjectives"
>
<objective-groups
:groups="languageCommunicationObjectiveGroups"
@ -85,7 +85,6 @@
/>
</div>
<chapter
:chapter="chapter"
:index="index"
@ -139,10 +138,8 @@ export default {
}
return this.module.bookmark.note;
},
},
methods: {
showObjectives() {
return this.$route && this.$route.query["show-objectives"] !== undefined;
return this.$route && this.$route.query['show-objectives'] !== undefined;
},
},
};