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">
|
<div class="details" v-if="game">
|
||||||
<game-description />
|
<game-description />
|
||||||
<div class="markdown" v-if="notes && game && notes[game.id]">
|
<div class="markdown" v-if="hasNote">
|
||||||
<h3>Notes</h3>
|
|
||||||
<vue-markdown :source="notes[game.id].text" />
|
<vue-markdown :source="notes[game.id].text" />
|
||||||
</div>
|
</div>
|
||||||
<game-details />
|
<game-details />
|
||||||
|
@ -116,6 +115,10 @@ export default {
|
||||||
return this.gameLists[this.platform.code];
|
return this.gameLists[this.platform.code];
|
||||||
},
|
},
|
||||||
|
|
||||||
|
hasNote() {
|
||||||
|
return this.notes && this.game && this.notes[this.game.id] && this.notes[this.game.id].text;
|
||||||
|
},
|
||||||
|
|
||||||
list() {
|
list() {
|
||||||
return this.activePlatform[this.listId];
|
return this.activePlatform[this.listId];
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue