Move show-objectives to computed properties
This commit is contained in:
parent
216f448137
commit
95cf48717c
|
|
@ -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;
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue