Allow toggling of menu by clicking on the user icon.

This commit is contained in:
Dominik Picheta 2018-05-11 17:42:19 +01:00
commit 594f230480

View file

@ -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")