From 59dd9cc78e44bb1ebea20130515e9843e0b5596d Mon Sep 17 00:00:00 2001 From: Roman Cervantes Date: Mon, 2 Dec 2019 11:20:58 -0700 Subject: [PATCH] Make show game ratings setting list-specific --- src/components/GameCards/GameCard.js | 4 +--- src/components/Lists/ListSettingsModal.vue | 13 +++++++++++-- src/components/Settings/GameBoardSettings.vue | 10 ---------- 3 files changed, 12 insertions(+), 15 deletions(-) diff --git a/src/components/GameCards/GameCard.js b/src/components/GameCards/GameCard.js index 9089b6ce..98dfe473 100644 --- a/src/components/GameCards/GameCard.js +++ b/src/components/GameCards/GameCard.js @@ -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() { diff --git a/src/components/Lists/ListSettingsModal.vue b/src/components/Lists/ListSettingsModal.vue index 6801b241..ef0e33a9 100644 --- a/src/components/Lists/ListSettingsModal.vue +++ b/src/components/Lists/ListSettingsModal.vue @@ -2,12 +2,12 @@
+
+

Hide game ratings

+ + +
+

{{ $t('list.sortList') }}

diff --git a/src/components/Settings/GameBoardSettings.vue b/src/components/Settings/GameBoardSettings.vue index 547c98ad..64520f9c 100644 --- a/src/components/Settings/GameBoardSettings.vue +++ b/src/components/Settings/GameBoardSettings.vue @@ -10,16 +10,6 @@ />
--> -
- -
{{ $t('settings.ratings') }}
- - -
-