From f65f595f757b4728a50c1812b2aa1d3b49c8509a Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 11 Jun 2026 12:04:40 +0300 Subject: [PATCH] peek settings modal on route change --- src/components/settings_modal/settings_modal.js | 5 +++++ src/components/user_profile/user_profile_admin_view.js | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/settings_modal/settings_modal.js b/src/components/settings_modal/settings_modal.js index 52b509fcf..bfa8ae09e 100644 --- a/src/components/settings_modal/settings_modal.js +++ b/src/components/settings_modal/settings_modal.js @@ -64,6 +64,11 @@ const SettingsModal = { }), } }, + watch: { + $route(r) { + this.peekModal() + } + }, components: { Modal, Popover, diff --git a/src/components/user_profile/user_profile_admin_view.js b/src/components/user_profile/user_profile_admin_view.js index 5b27ed393..887c21b8d 100644 --- a/src/components/user_profile/user_profile_admin_view.js +++ b/src/components/user_profile/user_profile_admin_view.js @@ -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) {