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