Watch observable

This commit is contained in:
the-djmaze 2022-12-23 16:04:16 +01:00
parent ea3eff5d0d
commit a451600d8b

View file

@ -17,7 +17,7 @@
<menu class="dropdown-menu right-edge" tabindex="-1" role="menu" aria-labelledby="top-system-dropdown-id">
<!-- ko foreach: accounts -->
<li role="presentation" data-bind="css:{'show-mobile':1==$root.accounts.length}">
<li role="presentation" data-bind="css:{'show-mobile':1==$root.accounts().length}">
<a class="email-title" href="#" data-bind="click: $root.accountClick, text: name || email,
attr: {title: email, 'data-unread': unreadEmails, 'data-icon': $root.accountEmail() === email ? '✔' : '👤'}"></a>
</li>