fix background
This commit is contained in:
parent
4ea48dafb9
commit
775a469507
1 changed files with 2 additions and 5 deletions
|
|
@ -133,11 +133,8 @@ export default {
|
||||||
userBackground() {
|
userBackground() {
|
||||||
return this.currentUser.background_image
|
return this.currentUser.background_image
|
||||||
},
|
},
|
||||||
instanceBackground() {
|
|
||||||
return this.mergedConfig.hideInstanceWallpaper ? null : this.background
|
|
||||||
},
|
|
||||||
background() {
|
background() {
|
||||||
return this.userBackground || this.instanceBackground
|
return this.userBackground || (this.mergedConfig.hideInstanceWallpaper ? null : this.instanceBackground)
|
||||||
},
|
},
|
||||||
bgStyle() {
|
bgStyle() {
|
||||||
if (this.background) {
|
if (this.background) {
|
||||||
|
|
@ -204,7 +201,7 @@ export default {
|
||||||
]),
|
]),
|
||||||
...mapState(useInstanceStore, ['styleDataUsed', 'private']),
|
...mapState(useInstanceStore, ['styleDataUsed', 'private']),
|
||||||
...mapState(useInstanceStore, {
|
...mapState(useInstanceStore, {
|
||||||
background: (store) => store.instanceIdentity.background,
|
instanceBackground: (store) => store.instanceIdentity.background,
|
||||||
showFeaturesPanel: (store) => store.instanceIdentity.showFeaturesPanel,
|
showFeaturesPanel: (store) => store.instanceIdentity.showFeaturesPanel,
|
||||||
showInstanceSpecificPanel: (store) =>
|
showInstanceSpecificPanel: (store) =>
|
||||||
store.instanceIdentity.showInstanceSpecificPanel,
|
store.instanceIdentity.showInstanceSpecificPanel,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue