mirror of
https://github.com/romancm/gamebrary
synced 2024-11-27 21:50:24 +00:00
Make show game ratings setting list-specific
This commit is contained in:
parent
68ef0e0fcb
commit
59dd9cc78e
3 changed files with 12 additions and 15 deletions
|
@ -17,9 +17,7 @@ export default {
|
|||
...mapGetters(['hasTags']),
|
||||
|
||||
showGameRatings() {
|
||||
return this.settings
|
||||
&& this.settings[this.platform.code]
|
||||
&& !this.settings[this.platform.code].hideGameRatings;
|
||||
return this.list && !this.list.hideGameRatings;
|
||||
},
|
||||
|
||||
gameCardClass() {
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
<modal
|
||||
v-if="activeList"
|
||||
ref="listSettingsModal"
|
||||
:title="$t('list.preferences')"
|
||||
:title="$t('list.settings')"
|
||||
@open="open"
|
||||
@close="close"
|
||||
>
|
||||
<button class="small">
|
||||
<i class="fas fa-sliders-h" />
|
||||
<i class="fas fa-cog" />
|
||||
</button>
|
||||
|
||||
<div
|
||||
|
@ -41,6 +41,15 @@
|
|||
</div>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h4>Hide game ratings</h4>
|
||||
|
||||
<toggle-switch
|
||||
id="gameRatings"
|
||||
v-model="localList.hideGameRatings"
|
||||
/>
|
||||
</section>
|
||||
|
||||
<section v-if="hasMultipleGames">
|
||||
<h4>{{ $t('list.sortList') }}</h4>
|
||||
|
||||
|
|
|
@ -10,16 +10,6 @@
|
|||
/>
|
||||
</div> -->
|
||||
|
||||
<div class="setting">
|
||||
<i class="fas fa-star-half-alt" />
|
||||
<h5>{{ $t('settings.ratings') }}</h5>
|
||||
|
||||
<toggle-switch
|
||||
id="gameRatings"
|
||||
v-model="value[platform.code].hideGameRatings"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<wallpaper-upload />
|
||||
|
||||
<div class="setting">
|
||||
|
|
Loading…
Reference in a new issue