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:
Amanda Alves Branquinho 2025-02-10 13:26:19 -03:00 committed by GitHub
parent 85a95e9aa1
commit e433be9f61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,6 +66,7 @@ export default class UserNotificationsDropdown extends DropdownSelectBox {
model: {
ignoredUsername: this.user.username,
enableSelection: false,
onUserIgnored: (username) => this.onUserIgnored?.(username),
},
});
}