user profile's backgrounds support
This commit is contained in:
parent
2b62f96889
commit
2aee91662d
7 changed files with 25 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ import Timeline from '../timeline/timeline.vue'
|
|||
import UserCard from '../user_card/user_card.vue'
|
||||
|
||||
import { useInstanceStore } from 'src/stores/instance.js'
|
||||
import { useInterfaceStore } from 'src/stores/interface.js'
|
||||
import { useInstanceCapabilitiesStore } from 'src/stores/instance_capabilities.js'
|
||||
import { useMergedConfigStore } from 'src/stores/merged_config.js'
|
||||
|
||||
|
|
@ -56,9 +57,14 @@ const UserProfile = {
|
|||
const routeParams = this.$route.params
|
||||
this.load({ name: routeParams.name, id: routeParams.id })
|
||||
this.tab = get(this.$route, 'query.tab', defaultTabKey)
|
||||
useInterfaceStore().setForeignProfileBackground(this.user?.background_image)
|
||||
},
|
||||
updated() {
|
||||
useInterfaceStore().setForeignProfileBackground(this.user?.background_image)
|
||||
},
|
||||
unmounted() {
|
||||
this.stopFetching()
|
||||
useInterfaceStore().setForeignProfileBackground(null)
|
||||
},
|
||||
computed: {
|
||||
timeline() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue