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(): result = buildHtml():
tdiv(): tdiv():
figure(class="avatar c-hand", 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) img(src=user.avatarUrl, title=user.name)
if user.isOnline: if user.isOnline:
italic(class="avatar-presense online") italic(class="avatar-presense online")