From 21d1f557f64cceda54755e2817d4799f1dbbea4f Mon Sep 17 00:00:00 2001 From: Shpuld Shpuldson Date: Fri, 3 Jul 2020 12:56:31 +0300 Subject: change styles for the dropdown, make things work nicely on mobile --- src/components/timeline_menu/timeline_menu.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/components/timeline_menu/timeline_menu.js') 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, -- cgit v1.2.3-70-g09d2