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: {
|
||||
Modal,
|
||||
Popover,
|
||||
|
|
|
|||
|
|
@ -17,13 +17,11 @@ library.add(faCircleNotch)
|
|||
const UserProfileAdminView = {
|
||||
data() {
|
||||
return {
|
||||
userId: null,
|
||||
godmode: false,
|
||||
showReblogs: false,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.userId = this.$route.params.id
|
||||
this.$store.dispatch('fetchUserIfMissing', this.userId)
|
||||
useInterfaceStore().setForeignProfileBackground(this.user?.background_image)
|
||||
},
|
||||
|
|
@ -45,6 +43,9 @@ const UserProfileAdminView = {
|
|||
user() {
|
||||
return this.$store.getters.findUser(this.userId)
|
||||
},
|
||||
userId() {
|
||||
return this.$route.params.id
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
fetchStatuses(page) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue