Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Try with async pipe

Benjamin Bädorfd0f082e06bde
diff --git a/frontend/src/app/features/in-app-notifications/center/menu/menu.component.html b/frontend/src/app/features/in-app-notifications/center/menu/menu.component.html
index 1c78522237b..c32d105f3cb 100644
--- a/frontend/src/app/features/in-app-notifications/center/menu/menu.component.html
+++ b/frontend/src/app/features/in-app-notifications/center/menu/menu.component.html
@@ -24,6 +24,28 @@
</a>
</li>
<li>
- <op-collapsible-menu></op-collapsible-menu>
+ <div class="tree-menu--container">
+ <ul class="pages-hierarchy -with-hierarchy collapsible-menu--container">
+ <li class="-hierarchy-expanded">
+ <div class="tree-menu--item">
+ <span class="tree-menu--hierarchy-span">
+ <button
+ class="tree-menu--hierarchy-indicator collapsible-menu--category-toggle"
+ type="button"
+ >
+ <span class="tree-menu--hierarchy-indicator-icon" aria-hidden="true"></span>
+ </button>
+ <span class="tree-menu--hierarchy-indicator-expanded hidden-for-sighted">Expanded. Click to collapse</span>
+ <span class="tree-menu--hierarchy-indicator-collapsed hidden-for-sighted">Collapsed. Click to show</span>
+ </span>
+ <ul class="pages-hierarchy -with-hierarchy" *ngIf="notificationsByProject$ | async">
+ <li class="collapsible-menu--placeholder" *ngFor="let item of (notificationsByProject$ | async)">
+ {{ item | json }}
+ </li>
+ </ul>
+ </div>
+ </li>
+ </ul>
+ </div>
</li>
</ul>
diff --git a/frontend/src/app/features/in-app-notifications/center/menu/menu.component.ts b/frontend/src/app/features/in-app-notifications/center/menu/menu.component.ts
index 40d6ed74def..b40abadb896 100644
--- a/frontend/src/app/features/in-app-notifications/center/menu/menu.component.ts
+++ b/frontend/src/app/features/in-app-notifications/center/menu/menu.component.ts
@@ -17,6 +17,9 @@ export const ianMenuSelector = 'op-ian-menu';
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class IanMenuComponent implements OnInit {
+ notificationsByProject$ = this.ianMenuService.query.notificationsByProject$;
+ notificationsByReason$ = this.ianMenuService.query.notificationsByReason$;
+
text = {
title: this.I18n.t('js.notifications.title'),
button_close: this.I18n.t('js.button_close'),