🐛 Close notifications modal on read all
This commit is contained in:
parent
3e2ca15def
commit
4dcc9d1735
@ -23,6 +23,7 @@ export default class NotificationModal extends React.Component<IProps, IState> {
|
||||
toastList: Toasts.getInstance().toasts,
|
||||
};
|
||||
this.handleToastChange = this.handleToastChange.bind(this);
|
||||
this.readAllNotifications = this.readAllNotifications.bind(this);
|
||||
}
|
||||
|
||||
public override render(): JSX.Element | null {
|
||||
@ -68,6 +69,7 @@ export default class NotificationModal extends React.Component<IProps, IState> {
|
||||
|
||||
private readAllNotifications() {
|
||||
Toasts.getInstance().closeAll();
|
||||
this.props.closeModal();
|
||||
}
|
||||
|
||||
private handleToastChange(toastList: IToast[] | null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user