Remove obsolete code referencing brandingEnabled

This commit is contained in:
Roman Cervantes 2019-11-25 22:47:22 -07:00
parent 52ab156f2e
commit 9aa6a338a0
4 changed files with 0 additions and 19 deletions

View file

@ -33,19 +33,12 @@ export default {
computed: { computed: {
...mapState(['gameLists', 'platform']), ...mapState(['gameLists', 'platform']),
...mapGetters(['brandingEnabled']),
lists() { lists() {
return this.gameLists && this.platform && this.gameLists[this.platform.code] return this.gameLists && this.platform && this.gameLists[this.platform.code]
? this.gameLists[this.platform.code] ? this.gameLists[this.platform.code]
: []; : [];
}, },
style() {
return this.brandingEnabled
? `background-color: ${this.platform.hex}; opacity: 0.8;`
: null;
},
}, },
methods: { methods: {

View file

@ -113,8 +113,6 @@ export default {
computed: { computed: {
...mapState(['user', 'gameLists', 'platform', 'settings', 'games']), ...mapState(['user', 'gameLists', 'platform', 'settings', 'games']),
...mapGetters(['brandingEnabled']),
autoSortEnabled() { autoSortEnabled() {
const list = this.list[this.listIndex]; const list = this.list[this.listIndex];

View file

@ -6,21 +6,18 @@ export default [
code: 'nintendo-switch', code: 'nintendo-switch',
hex: '#ce181e', hex: '#ce181e',
id: 130, id: 130,
brandingEnabled: true,
}, },
{ {
name: 'PlayStation 4', name: 'PlayStation 4',
code: 'ps4', code: 'ps4',
hex: '#2e6db4', hex: '#2e6db4',
id: 48, id: 48,
brandingEnabled: true,
}, },
{ {
name: 'Xbox One', name: 'Xbox One',
code: 'xbox-one', code: 'xbox-one',
id: 49, id: 49,
hex: '#177d3e', hex: '#177d3e',
brandingEnabled: true,
}, },
{ {
name: 'PlayStation Vita', name: 'PlayStation Vita',

View file

@ -91,12 +91,5 @@ export default {
// eslint-disable-next-line // eslint-disable-next-line
activeList: ({ gameLists, platform, activeListIndex }) => gameLists[platform.code][activeListIndex], activeList: ({ gameLists, platform, activeListIndex }) => gameLists[platform.code][activeListIndex],
brandingEnabled: ({ settings, platform }) => {
const brandingEnabled = settings && settings.branding;
const brandingAvailble = platform && platform.brandingEnabled && Boolean(platform.hex);
return Boolean(brandingEnabled && brandingAvailble);
},
hasTags: state => Object.keys(state.tags) && Object.keys(state.tags).length > 0, hasTags: state => Object.keys(state.tags) && Object.keys(state.tags).length > 0,
}; };