Make show game ratings setting list-specific

This commit is contained in:
Roman Cervantes 2019-12-02 11:20:58 -07:00
parent 68ef0e0fcb
commit 59dd9cc78e
3 changed files with 12 additions and 15 deletions

View file

@ -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() {

View file

@ -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>

View file

@ -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">