peek settings modal on route change
This commit is contained in:
parent
8b3bdd2191
commit
f65f595f75
2 changed files with 8 additions and 2 deletions
|
|
@ -64,6 +64,11 @@ const SettingsModal = {
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
$route(r) {
|
||||||
|
this.peekModal()
|
||||||
|
}
|
||||||
|
},
|
||||||
components: {
|
components: {
|
||||||
Modal,
|
Modal,
|
||||||
Popover,
|
Popover,
|
||||||
|
|
|
||||||
|
|
@ -17,13 +17,11 @@ library.add(faCircleNotch)
|
||||||
const UserProfileAdminView = {
|
const UserProfileAdminView = {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
userId: null,
|
|
||||||
godmode: false,
|
godmode: false,
|
||||||
showReblogs: false,
|
showReblogs: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.userId = this.$route.params.id
|
|
||||||
this.$store.dispatch('fetchUserIfMissing', this.userId)
|
this.$store.dispatch('fetchUserIfMissing', this.userId)
|
||||||
useInterfaceStore().setForeignProfileBackground(this.user?.background_image)
|
useInterfaceStore().setForeignProfileBackground(this.user?.background_image)
|
||||||
},
|
},
|
||||||
|
|
@ -45,6 +43,9 @@ const UserProfileAdminView = {
|
||||||
user() {
|
user() {
|
||||||
return this.$store.getters.findUser(this.userId)
|
return this.$store.getters.findUser(this.userId)
|
||||||
},
|
},
|
||||||
|
userId() {
|
||||||
|
return this.$route.params.id
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
fetchStatuses(page) {
|
fetchStatuses(page) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue