mirror of
https://github.com/romancm/gamebrary
synced 2024-12-17 23:03:08 +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: {
|
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: {
|
||||||
|
|
|
@ -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];
|
||||||
|
|
||||||
|
|
|
@ -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',
|
||||||
|
|
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue