diff options
| author | feld <feld@feld.me> | 2019-12-13 16:58:29 +0000 |
|---|---|---|
| committer | feld <feld@feld.me> | 2019-12-13 16:58:29 +0000 |
| commit | 0b49e798e0737728e94ff8a284a4570acc7bac28 (patch) | |
| tree | bfe101ff2213ca145b11f047a039ee4b7d28b2d8 /src/components/nav_panel/nav_panel.js | |
| parent | 766a674a488c68a11be925639d7fd2a9242df9ae (diff) | |
| parent | d899d06973c7c46e77f9e47f480d6967e83b4adf (diff) | |
Merge branch 'feature/lockdown-timelines-private-mode' into 'develop'
interaction with BE private mode
See merge request pleroma/pleroma-fe!989
Diffstat (limited to 'src/components/nav_panel/nav_panel.js')
| -rw-r--r-- | src/components/nav_panel/nav_panel.js | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/components/nav_panel/nav_panel.js b/src/components/nav_panel/nav_panel.js index 7f783acb..d9268585 100644 --- a/src/components/nav_panel/nav_panel.js +++ b/src/components/nav_panel/nav_panel.js @@ -1,20 +1,18 @@ +import { mapState } from 'vuex' + const NavPanel = { created () { if (this.currentUser && this.currentUser.locked) { this.$store.dispatch('startFetchingFollowRequest') } }, - computed: { - currentUser () { - return this.$store.state.users.currentUser - }, - chat () { - return this.$store.state.chat.channel - }, - followRequestCount () { - return this.$store.state.api.followRequests.length - } - } + computed: mapState({ + currentUser: state => state.users.currentUser, + chat: state => state.chat.channel, + followRequestCount: state => state.api.followRequests.length, + privateMode: state => state.instance.private, + federating: state => state.instance.federating + }) } export default NavPanel |
