feat: Enhance notification template for better UX

Improved notification display to address issue of a blank box when
clicking the icon. Now, a centered icon with No notification is shown
for a clearer user experience. This change enhances UI clarity and
user-friendliness.

Fix: #2005

Implemented the translation functionality
This commit is contained in:
Vikash Prem Sharma
2024-02-27 02:47:01 +05:30
parent dd1245c997
commit 98d17beb73
13 changed files with 19 additions and 0 deletions
@@ -8,6 +8,13 @@
<mat-menu class="mifosx-notifications-menu" #notificationsMenu="matMenu" [overlapTrigger]="false">
<div *ngIf="unreadNotifications.length === 0" fxLayout="column" fxLayoutAlign="center center" style="padding: 16px;">
<mat-icon style="font-size: 24px; opacity: 0.8;">
<span class="material-icons">notifications</span>
</mat-icon>
<p>{{ 'labels.text.No notifications' | translate }}</p>
</div>
<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>