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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Remove caller in favor of string-based origin
Oliver Güntherc76d99628d15
diff --git a/frontend/src/app/core/state/in-app-notifications/in-app-notifications.actions.ts b/frontend/src/app/core/state/in-app-notifications/in-app-notifications.actions.tsindex 94a725ffea0..be2fa86cb59 100644--- a/frontend/src/app/core/state/in-app-notifications/in-app-notifications.actions.ts+++ b/frontend/src/app/core/state/in-app-notifications/in-app-notifications.actions.ts@@ -6,10 +6,10 @@ import {export const markNotificationsAsRead = action('[IAN] Mark notifications as read',- props<{ caller:{ id:string }, notifications:ID[] }>(),+ props<{ origin:string, notifications:ID[] }>(),);export const notificationsMarkedRead = action('[IAN] Notifications were marked as read',- props<{ caller:{ id:string }, notifications:ID[] }>(),+ props<{ origin:string, notifications:ID[] }>(),);diff --git a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.ts b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.tsindex 0f4bf672df1..246c7749d3b 100644--- a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.ts+++ b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.ts@@ -29,6 +29,8 @@ export class InAppNotificationCenterComponent implements OnInit {hasNotifications$ = this.storeService.query.hasNotifications$;+ notifications$ = this.storeService.query.notifications$;+noResultText$ = this.storeService.querydiff --git a/frontend/src/app/features/in-app-notifications/center/state/ian-center.service.ts b/frontend/src/app/features/in-app-notifications/center/state/ian-center.service.tsindex 43e7a816508..76e239a5d4c 100644--- a/frontend/src/app/features/in-app-notifications/center/state/ian-center.service.ts+++ b/frontend/src/app/features/in-app-notifications/center/state/ian-center.service.ts@@ -52,7 +52,7 @@ export class IanCenterService {markAsRead(notifications:ID[]):void {this.actions$.dispatch(- markNotificationsAsRead({ caller: this, notifications }),+ markNotificationsAsRead({ origin: this.id, notifications }),);}@@ -71,7 +71,7 @@ export class IanCenterService {*/@EffectCallback(notificationsMarkedRead)private reloadOnNotificationRead(action:ReturnType<typeof notificationsMarkedRead>) {- if (action.caller === this) {+ if (action.origin === this.id) {this.resourceService.removeFromCollection(this.query.params, action.notifications);diff --git a/frontend/src/app/features/work-packages/routing/wp-view-base/state/wp-single-view.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/state/wp-single-view.service.tsindex 1f44ca759b7..acb37959462 100644--- a/frontend/src/app/features/work-packages/routing/wp-view-base/state/wp-single-view.service.ts+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/state/wp-single-view.service.ts@@ -56,7 +56,7 @@ export class WpSingleViewService {).subscribe((collection) => {this.actions$.dispatch(- markNotificationsAsRead({ caller: this, notifications: collection.ids }),+ markNotificationsAsRead({ origin: this.id, notifications: collection.ids }),);});}