From 3774a0f982565b23ecddbd44c80dd02af4524e7c Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Fri, 28 Aug 2026 23:04:06 +0300 Subject: [PATCH] cleanup --- .../mobile_post_status_button.js | 4 +--- .../mobile_post_status_button.vue | 2 +- .../settings_modal/settings_modal_admin_content.js | 3 --- .../settings_modal/settings_modal_user_content.js | 4 +--- .../settings_modal/settings_modal_user_content.vue | 12 ++++++------ 5 files changed, 9 insertions(+), 16 deletions(-) diff --git a/src/components/mobile_post_status_button/mobile_post_status_button.js b/src/components/mobile_post_status_button/mobile_post_status_button.js index d137331c9..b42af3fa0 100644 --- a/src/components/mobile_post_status_button/mobile_post_status_button.js +++ b/src/components/mobile_post_status_button/mobile_post_status_button.js @@ -34,9 +34,6 @@ const MobilePostStatusButton = { window.removeEventListener('resize', this.handleOSK) }, computed: { - isLoggedIn() { - return useUsersStore().loggedIn - }, isHidden() { if (HIDDEN_FOR_PAGES.has(this.$route.name)) { return true @@ -52,6 +49,7 @@ const MobilePostStatusButton = { autohideFloatingPostButton() { return !!useMergedConfigStore().mergedConfig.autohideFloatingPostButton }, + ...mapState(useUsersStore, ['loggedIn']), }, watch: { autohideFloatingPostButton: function (isEnabled) { diff --git a/src/components/mobile_post_status_button/mobile_post_status_button.vue b/src/components/mobile_post_status_button/mobile_post_status_button.vue index 32079c298..8b11f12d4 100644 --- a/src/components/mobile_post_status_button/mobile_post_status_button.vue +++ b/src/components/mobile_post_status_button/mobile_post_status_button.vue @@ -1,6 +1,6 @@