Allow toggling of menu by clicking on the user icon.
This commit is contained in:
parent
17436010a2
commit
594f230480
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ when defined(js):
|
|||
result = buildHtml():
|
||||
tdiv():
|
||||
figure(class="avatar c-hand",
|
||||
onClick=(e: Event, n: VNode) => (state.shown = true)):
|
||||
onClick=(e: Event, n: VNode) => (state.shown = not state.shown)):
|
||||
img(src=user.avatarUrl, title=user.name)
|
||||
if user.isOnline:
|
||||
italic(class="avatar-presense online")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue