Skip to content

Commit

Permalink
fix(friend): close context menu on route changed or friend removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sasha Zakablukov authored and Sasha Zakablukov committed May 4, 2022
1 parent 87795ba commit 2edba67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/views/friends/friend/Friend.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2edba67

Please sign in to comment.