fun UI for profile background

This commit is contained in:
Henry Jameson 2025-11-27 19:33:47 +02:00
commit 16f456eaea
3 changed files with 165 additions and 60 deletions

View file

@ -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 }