Show avatar for "me"

Make it a shortcut to profile view. Issue #83.
This commit is contained in:
N-Pex 2021-03-04 12:17:21 +01:00
parent b0aea0bd81
commit 999dad0909
6 changed files with 48 additions and 0 deletions

View file

@ -73,6 +73,7 @@
:timelineSet="timelineWindow._timelineSet"
v-on:send-quick-reaction="sendQuickReaction"
v-on:context-menu="showContextMenuForEvent($event)"
v-on:own-avatar-clicked="viewProfile"
/>
<!-- <div>EventID: {{ event.getId() }}</div> -->
<div
@ -1054,6 +1055,10 @@ export default {
this.showContextMenuAnchor = e.anchor;
},
viewProfile() {
this.$navigation.push({ name: "Profile" }, 1);
},
closeContextMenuIfOpen(e) {
if (this.showContextMenu) {
this.showContextMenu = false;