diff --git a/src/App.js b/src/App.js index d7a63bd8a..2854f7dfc 100644 --- a/src/App.js +++ b/src/App.js @@ -21,6 +21,7 @@ import { useInstanceCapabilitiesStore } from 'src/stores/instance_capabilities.j import { useInterfaceStore } from 'src/stores/interface.js' import { useMergedConfigStore } from 'src/stores/merged_config.js' import { useShoutStore } from 'src/stores/shout.js' +import { useUsersStore } from 'src/stores/users.js' // Helper to unwrap reactive proxies window.toValue = (x) => JSON.parse(JSON.stringify(x)) @@ -153,9 +154,6 @@ export default { ...(navbarColumnStretch ? ['-column-stretch'] : []), ] }, - currentUser() { - return this.$store.state.users.currentUser - }, userBackground() { return this.currentUser.background_image }, @@ -246,6 +244,7 @@ export default { 'styleDataUsed', 'layoutType', ]), + ...mapState(useUsersStore, ['currentUser']), ...mapState(useInstanceStore, ['styleDataUsed']), ...mapState(useInstanceCapabilitiesStore, [ 'suggestionsEnabled', diff --git a/src/App.vue b/src/App.vue index 84a6f7d3d..bd19c5c10 100644 --- a/src/App.vue +++ b/src/App.vue @@ -26,7 +26,7 @@ class="column -scrollable" :class="{ '-show-scrollbar': showScrollbars }" > - +