Skip to content

NotificationsPage

reference
1 min readUpdated

Kind: Class

Source: Frontend/src/app/components/notifications/notificationsPage.ts (line 9)

Part of: Frontend

NotificationsPage manages the notifications view in the frontend application. It loads user notifications during initialization, updates notification state, switches tabs, and opens notification-related links or details.

Methods

MethodSignatureReturns
changeTabschangeTabs(targetTab: undefined)void
openLinkopenLink(e: undefined, openDirect: boolean)void
ngOnInitngOnInit()void
openopen(ID: undefined, Type: undefined, index: undefined, notificationID: undefined, seen: undefined)void
getUserNotificationsgetUserNotifications(UserId: undefined)void
updateUserNotificationsupdateUserNotifications(NotificationId: undefined)void

Properties

PropertyType
openedInPopupboolean
tabsSwitchstring
notificationsDataany
subscriptionSubscription

Diagram

mermaid
graph LR
  A[NotificationsPage] --> B[ngOnInit]
  B --> C[getUserNotifications]
  A --> D[changeTabs]
  A --> E[open]
  A --> F[openLink]
  A --> G[updateUserNotifications]
  G --> C

Usage

ts
// Interact with an existing NotificationsPage instance,
// such as one obtained through an Angular component fixture.
const page: NotificationsPage = componentInstance;

page.ngOnInit();
page.changeTabs();
page.open(notification);
page.openLink(notification);
page.updateUserNotifications();

AI Coding Instructions

  • Call getUserNotifications() from initialization and after notification updates when the displayed list must be refreshed.
  • Keep tab-switching behavior inside changeTabs() rather than duplicating tab state changes in template handlers.
  • Route notification selection through open() and external or target navigation through openLink().
  • Preserve the distinction between reading notifications with getUserNotifications() and changing their state with updateUserNotifications().

Relationships

  • IMPORTS → Notifications
  • IMPORTS → AuthService
  • IMPORTS → AppSettings
  • CALLS → SytemNotificationController

Used by

2 references from 2 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

Imported by (2)

  • AppRoutingModuleFrontend/src/app/app-routing.module.ts:1
  • TranslateHandlerFrontend/src/app/components/shared/shared.module.ts:1

Was this page helpful?

Download as PDF