From dc2c768102e01e1aadd6f4c6e43c00241c26c2bd Mon Sep 17 00:00:00 2001 From: Sasha Zakablukov <38879804+AlexZakablukov@users.noreply.github.com> Date: Thu, 5 May 2022 17:49:52 +0300 Subject: [PATCH] fix(friend): close context menu on route changed or friend removed (#3057) --- components/views/friends/friend/Friend.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/views/friends/friend/Friend.vue b/components/views/friends/friend/Friend.vue index 1d869be7ce..25808afa18 100644 --- a/components/views/friends/friend/Friend.vue +++ b/components/views/friends/friend/Friend.vue @@ -74,6 +74,9 @@ export default Vue.extend({ return hash ? `${this.$Config.textile.browser}/ipfs/${hash}` : '' }, }, + beforeDestroy() { + this.$store.commit('ui/toggleContextMenu', false) + }, methods: { async createFriendRequest() { this.loading = AddFriendEnum.SENDING