fun UI for profile background
This commit is contained in:
parent
0d04b1c8ce
commit
16f456eaea
3 changed files with 165 additions and 60 deletions
|
|
@ -236,6 +236,10 @@ const AppearanceTab = {
|
|||
noIntersectionObserver () {
|
||||
return !window.IntersectionObserver
|
||||
},
|
||||
instanceWallpaper () {
|
||||
console.log(this.$store.state.instance.background)
|
||||
this.$store.state.instance.background
|
||||
},
|
||||
instanceWallpaperUsed () {
|
||||
return this.$store.state.instance.background &&
|
||||
!this.$store.state.users.currentUser.background_image
|
||||
|
|
@ -411,6 +415,9 @@ const AppearanceTab = {
|
|||
this.submitBackground('')
|
||||
}
|
||||
},
|
||||
resetUploadedBackground () {
|
||||
this.backgroundPreview = null
|
||||
},
|
||||
submitBackground (background) {
|
||||
if (!this.backgroundPreview && background !== '') { return }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue