-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # src/app/services/user-notification.service.ts # src/app/utilities/mkj-user-notifications/mkj-user-notifications.component.html
- Loading branch information
Showing
5 changed files
with
177 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 24 additions & 18 deletions
42
src/app/utilities/mkj-user-notifications/mkj-user-notifications.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,28 @@ | ||
<i | ||
pBadge | ||
class="pi pi-bell text-2xl cursor-pointer" | ||
style="color: var(--primary-color-text)" | ||
severity="warning" | ||
[value]="this.menuItems.length" | ||
[class.p-disabled]="this.menuItems.length === 0" | ||
[class.hide-badge]="this.menuItems.length === 0" | ||
(click)="this.menuItems.length ? notificationmenu.toggle($event) : null" | ||
pBadge | ||
class="pi pi-bell text-2xl cursor-pointer text-white" | ||
severity="warning" | ||
[value]="this.menuItems.length" | ||
[class.p-disabled]="this.menuItems.length === 0" | ||
[class.hide-badge]="this.menuItems.length === 0" | ||
(click)="this.menuItems.length ? notificationmenu.toggle($event) : null" | ||
></i> | ||
|
||
<p-menu #notificationmenu [model]="menuItems" [popup]="true"> | ||
<ng-template pTemplate="item" let-item> | ||
<div class="flex flex-column gap-2 p-menuitem-link flex align-items-center p-1"> | ||
<div class="flex gap-2"> | ||
<i [class]="item.icon"></i><span>{{ item.label }}</span> | ||
</div> | ||
<div class="opacity-80">{{ item.subLabel }}</div> | ||
<div></div> | ||
|
||
<p-overlayPanel #notificationmenu> | ||
<div class="mb-3"> | ||
<button pButton label="Alle gelesen" icon="mdi mdi-email-open-outline" | ||
class="p-button-outlined p-button-sm" (click)="markAllAsRead(); notificationmenu.hide()"></button> | ||
</div> | ||
</ng-template> | ||
</p-menu> | ||
<p-menu [model]="menuItems" [popup]="false"> | ||
<ng-template pTemplate="item" let-item> | ||
<div class="flex flex-column gap-2 p-menuitem-link align-items-center"> | ||
<div class="flex gap-2"> | ||
<i [class]="item.icon"></i><span>{{ item.label }}</span> | ||
</div> | ||
<div class="opacity-80">{{ item.subLabel }}</div> | ||
<div></div> | ||
</div> | ||
</ng-template> | ||
</p-menu> | ||
</p-overlayPanel> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters