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
AlexZakablukov authored May 5, 2022
1 parent c876168 commit dc2c768
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 dc2c768

Please sign in to comment.