aboutsummaryrefslogtreecommitdiff
path: root/src/components/timeline_menu/timeline_menu.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/timeline_menu/timeline_menu.js')
-rw-r--r--src/components/timeline_menu/timeline_menu.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/components/timeline_menu/timeline_menu.js b/src/components/timeline_menu/timeline_menu.js
index 912dd79a..d35b7789 100644
--- a/src/components/timeline_menu/timeline_menu.js
+++ b/src/components/timeline_menu/timeline_menu.js
@@ -5,11 +5,25 @@ const TimelineMenu = {
components: {
Popover
},
+ data () {
+ return {
+ isOpen: false
+ }
+ },
created () {
if (this.currentUser && this.currentUser.locked) {
this.$store.dispatch('startFetchingFollowRequests')
}
},
+ methods: {
+ openMenu () {
+ // Tried using $nextTick, but the animation wouldn't
+ // play, I assume it played too quickly
+ setTimeout(() => {
+ this.isOpen = true
+ }, 1)
+ }
+ },
computed: {
...mapState({
currentUser: state => state.users.currentUser,