From 1df54b4ce001ea15916edfe156a4618f67e32068 Mon Sep 17 00:00:00 2001 From: Maximilian Wesener Date: Tue, 2 Apr 2024 14:00:48 +0200 Subject: [PATCH 1/2] chore(feature): 616 - Cypress test fix. --- .../page/notifications/core/notification-helper.service.ts | 3 +++ .../page/notifications/detail/notification-detail.component.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/modules/page/notifications/core/notification-helper.service.ts b/frontend/src/app/modules/page/notifications/core/notification-helper.service.ts index f687662415..95d3881fb4 100644 --- a/frontend/src/app/modules/page/notifications/core/notification-helper.service.ts +++ b/frontend/src/app/modules/page/notifications/core/notification-helper.service.ts @@ -54,6 +54,9 @@ export class NotificationHelperService { } modalCallback(status: NotificationStatus, id: string, reason?: string): Observable { + console.log(status, "status"); + console.log(id, "id"); + console.log(reason, "reason"); switch (status) { case NotificationStatus.ACKNOWLEDGED: return this.notificationsFacade.acknowledgeNotification(id); diff --git a/frontend/src/app/modules/page/notifications/detail/notification-detail.component.ts b/frontend/src/app/modules/page/notifications/detail/notification-detail.component.ts index 975e6103b3..ff80d00e3f 100644 --- a/frontend/src/app/modules/page/notifications/detail/notification-detail.component.ts +++ b/frontend/src/app/modules/page/notifications/detail/notification-detail.component.ts @@ -196,7 +196,7 @@ export class NotificationDetailComponent implements AfterViewInit, OnDestroy { } private selectedNotificationBasedOnUrl(): void { - const notificationId = this.route.snapshot.paramMap.get('alertId'); + const notificationId = this.route.snapshot.paramMap.get('notificationId'); this.notificationsFacade .getNotification(notificationId) .pipe( From e157d248866251629bcdd9918a6984dca9021fe8 Mon Sep 17 00:00:00 2001 From: Maximilian Wesener Date: Tue, 2 Apr 2024 15:04:08 +0200 Subject: [PATCH 2/2] chore(feature): 616 - Cypress test fix. --- .../page/notifications/core/notification-helper.service.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/frontend/src/app/modules/page/notifications/core/notification-helper.service.ts b/frontend/src/app/modules/page/notifications/core/notification-helper.service.ts index 95d3881fb4..f687662415 100644 --- a/frontend/src/app/modules/page/notifications/core/notification-helper.service.ts +++ b/frontend/src/app/modules/page/notifications/core/notification-helper.service.ts @@ -54,9 +54,6 @@ export class NotificationHelperService { } modalCallback(status: NotificationStatus, id: string, reason?: string): Observable { - console.log(status, "status"); - console.log(id, "id"); - console.log(reason, "reason"); switch (status) { case NotificationStatus.ACKNOWLEDGED: return this.notificationsFacade.acknowledgeNotification(id);