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