peek settings modal on route change

This commit is contained in:
Henry Jameson 2026-06-11 12:04:40 +03:00
commit f65f595f75
2 changed files with 8 additions and 2 deletions

View file

@ -64,6 +64,11 @@ const SettingsModal = {
}), }),
} }
}, },
watch: {
$route(r) {
this.peekModal()
}
},
components: { components: {
Modal, Modal,
Popover, Popover,

View file

@ -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) {