mirror of
https://github.com/romancm/gamebrary
synced 2024-11-24 04:03:06 +00:00
Remove obsolete code referencing brandingEnabled
This commit is contained in:
parent
52ab156f2e
commit
9aa6a338a0
4 changed files with 0 additions and 19 deletions
|
@ -33,19 +33,12 @@ export default {
|
|||
|
||||
computed: {
|
||||
...mapState(['gameLists', 'platform']),
|
||||
...mapGetters(['brandingEnabled']),
|
||||
|
||||
lists() {
|
||||
return this.gameLists && this.platform && this.gameLists[this.platform.code]
|
||||
? this.gameLists[this.platform.code]
|
||||
: [];
|
||||
},
|
||||
|
||||
style() {
|
||||
return this.brandingEnabled
|
||||
? `background-color: ${this.platform.hex}; opacity: 0.8;`
|
||||
: null;
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
|
@ -113,8 +113,6 @@ export default {
|
|||
computed: {
|
||||
...mapState(['user', 'gameLists', 'platform', 'settings', 'games']),
|
||||
|
||||
...mapGetters(['brandingEnabled']),
|
||||
|
||||
autoSortEnabled() {
|
||||
const list = this.list[this.listIndex];
|
||||
|
||||
|
|
|
@ -6,21 +6,18 @@ export default [
|
|||
code: 'nintendo-switch',
|
||||
hex: '#ce181e',
|
||||
id: 130,
|
||||
brandingEnabled: true,
|
||||
},
|
||||
{
|
||||
name: 'PlayStation 4',
|
||||
code: 'ps4',
|
||||
hex: '#2e6db4',
|
||||
id: 48,
|
||||
brandingEnabled: true,
|
||||
},
|
||||
{
|
||||
name: 'Xbox One',
|
||||
code: 'xbox-one',
|
||||
id: 49,
|
||||
hex: '#177d3e',
|
||||
brandingEnabled: true,
|
||||
},
|
||||
{
|
||||
name: 'PlayStation Vita',
|
||||
|
|
|
@ -91,12 +91,5 @@ export default {
|
|||
// eslint-disable-next-line
|
||||
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,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue