web/user: optimise load, fix unread status for notifications

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-09-18 18:16:27 +02:00
parent 930dd51663
commit bf09a54f35
3 changed files with 126 additions and 103 deletions

View File

@ -154,8 +154,8 @@ export class UserInterface extends LitElement {
<span
class="pf-c-notification-badge ${this
.notificationsCount > 0
? html`pf-m-unread`
: html``}"
? "pf-m-unread"
: ""}"
>
<i class="pf-icon-bell" aria-hidden="true"></i>
<span class="pf-c-notification-badge__count"