DEV: Add additional arg to appEvents triggered on notification click (#25317)

This commit is contained in:
Mark VanLandingham 2024-01-19 10:01:33 -06:00 committed by GitHub
parent 3bd88d7586
commit 07a0c6c637
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -82,7 +82,10 @@ export default class UserMenuNotificationItem extends UserMenuBaseItem {
onClick() {
this.renderDirector.onClick?.();
this.appEvents.trigger("user-menu:notification-click", this.notification);
this.appEvents.trigger("user-menu:notification-click", {
notification: this.notification,
href: this.linkHref,
});
if (!this.notification.read) {
this.notification.set("read", true);