fix: multiple bugs in home/core/institution modules (#1225)

Fixes: #1224
This commit is contained in:
Karan Takalkar
2020-08-25 02:16:25 +05:30
committed by GitHub
parent 2f654ef664
commit f215e1aa96
32 changed files with 80 additions and 69 deletions
@@ -0,0 +1,21 @@
<button
mat-icon-button class="ml-1" matTooltip="Notifications"
[matMenuTriggerFor]="notificationsMenu" (menuClosed)="menuClosed()"
[matBadge]="unreadNotifications.length" [matBadgeHidden]="!unreadNotifications.length" matBadgeColor="warn" matBadgeSize="medium"
>
<fa-icon icon="bell" size="lg"></fa-icon>
</button>
<mat-menu class="mifosx-notifications-menu" #notificationsMenu="matMenu" [overlapTrigger]="false">
<button mat-menu-item class="unread" *ngFor="let notification of unreadNotifications" [routerLink]="[routeMap[notification.objectType], notification.objectId]">
{{ notification.content }}*<br>
<span class="time">[{{ notification.createdAt }}]</span>
</button>
<button mat-menu-item *ngFor="let notification of displayedReadNotifications" [routerLink]="[routeMap[notification.objectType], notification.objectId]">
{{ notification.content }}<br>
<span class="time">[{{ notification.createdAt }}]</span>
</button>
</mat-menu>