mirror of
https://github.com/discourse/discourse.git
synced 2025-02-14 23:35:00 +00:00
DEV: Add additional arg to appEvents triggered on notification click (#25317)
This commit is contained in:
parent
3bd88d7586
commit
07a0c6c637
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user