mirror of
https://github.com/romancm/gamebrary
synced 2024-11-23 19:53:14 +00:00
Move note check to computed prop
This commit is contained in:
parent
e3bcde4224
commit
01be6fc7e5
1 changed files with 5 additions and 2 deletions
|
@ -36,8 +36,7 @@
|
|||
|
||||
<div class="details" v-if="game">
|
||||
<game-description />
|
||||
<div class="markdown" v-if="notes && game && notes[game.id]">
|
||||
<h3>Notes</h3>
|
||||
<div class="markdown" v-if="hasNote">
|
||||
<vue-markdown :source="notes[game.id].text" />
|
||||
</div>
|
||||
<game-details />
|
||||
|
@ -116,6 +115,10 @@ export default {
|
|||
return this.gameLists[this.platform.code];
|
||||
},
|
||||
|
||||
hasNote() {
|
||||
return this.notes && this.game && this.notes[this.game.id] && this.notes[this.game.id].text;
|
||||
},
|
||||
|
||||
list() {
|
||||
return this.activePlatform[this.listId];
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue