Skip to content

NotificationsPage

reference
1 min readUpdated

Kind: Class

Source: Pams/Web/Pams.Web/Client/app/components/notifications/notificationsPage.ts (line 8)

Part of: Pams

NotificationsPage manages the notifications view in the PAMS web client. It loads user notifications, updates their state, switches notification 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
  User[User action] --> Page[NotificationsPage]
  Page --> Init[ngOnInit]
  Init --> Load[getUserNotifications]
  Page --> Tabs[changeTabs]
  Page --> Open[open]
  Page --> Link[openLink]
  Page --> Update[updateUserNotifications]
  Load --> Notifications[User notifications]
  Update --> Notifications

Usage

ts
import { NotificationsPage } from './components/notifications/notificationsPage';

const page = new NotificationsPage();

page.ngOnInit();

page.changeTabs();
page.getUserNotifications();

page.open(notification);
page.openLink(notification);

page.updateUserNotifications();

AI Coding Instructions

  • Call getUserNotifications() during initialization or after actions that can change notification state.
  • Keep tab-selection behavior inside changeTabs() so notification filtering remains in one place.
  • Route notification click handling through open() and external or linked navigation through openLink().
  • After marking notifications as read or changing their status, call updateUserNotifications() and refresh the displayed notification data.

Relationships

  • IMPORTS → Notifications
  • 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)

  • AppRoutingModulePams/Web/Pams.Web/Client/app/app-routing.module.ts:1
  • TranslateHandlerPams/Web/Pams.Web/Client/app/app.module.ts:1

Was this page helpful?

Download as PDF