mirror of
https://github.com/discourse/discourse.git
synced 2025-02-24 07:32:11 +08:00
DEV: Add optional callback in notification dropdown action (#31257)
Modify the component UserNotificationDropdown to receive a function that will be called after an user is ignored.
This commit is contained in:
parent
85a95e9aa1
commit
e433be9f61
@ -66,6 +66,7 @@ export default class UserNotificationsDropdown extends DropdownSelectBox {
|
||||
model: {
|
||||
ignoredUsername: this.user.username,
|
||||
enableSelection: false,
|
||||
onUserIgnored: (username) => this.onUserIgnored?.(username),
|
||||
},
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user