aboutsummaryrefslogtreecommitdiff
path: root/src/components/side_drawer/side_drawer.js
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2019-12-12 13:32:52 -0600
committerMark Felder <feld@FreeBSD.org>2019-12-12 13:32:52 -0600
commit821a2bcc68e1a6c5e0b9a8080b0b8a2be04d1dd2 (patch)
tree61b3d62bbd93d9be9c649fa7df8763cbd4bf9195 /src/components/side_drawer/side_drawer.js
parent43d4d17b41863dd5784f1d611857a9064759946b (diff)
parent051b9703dffa785eb3b0fde29d2ceab3fe1255ba (diff)
Merge branch 'develop' into feature/lockdown-timelines-private-mode
Diffstat (limited to 'src/components/side_drawer/side_drawer.js')
-rw-r--r--src/components/side_drawer/side_drawer.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/components/side_drawer/side_drawer.js b/src/components/side_drawer/side_drawer.js
index 2725d43a..22cb1a55 100644
--- a/src/components/side_drawer/side_drawer.js
+++ b/src/components/side_drawer/side_drawer.js
@@ -10,6 +10,10 @@ const SideDrawer = {
}),
created () {
this.closeGesture = GestureService.swipeGesture(GestureService.DIRECTION_LEFT, this.toggleDrawer)
+
+ if (this.currentUser && this.currentUser.locked) {
+ this.$store.dispatch('startFetchingFollowRequest')
+ }
},
components: { UserCard },
computed: {
@@ -29,6 +33,9 @@ const SideDrawer = {
logo () {
return this.$store.state.instance.logo
},
+ hideSitename () {
+ return this.$store.state.instance.hideSitename
+ },
sitename () {
return this.$store.state.instance.name
},