mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-26 23:34:45 +00:00
optimize notification (#7521)
* update * update --------- Co-authored-by: 孙永强 <11704063+s-yongqiang@user.noreply.gitee.com>
This commit is contained in:
@@ -101,6 +101,7 @@ class UserNotificationsDialog extends React.Component {
|
||||
return item;
|
||||
})
|
||||
});
|
||||
this.props.updateTotalUnseenCount('general');
|
||||
}).catch((error) => {
|
||||
this.setState({
|
||||
isLoading: false,
|
||||
@@ -115,6 +116,7 @@ class UserNotificationsDialog extends React.Component {
|
||||
return item;
|
||||
})
|
||||
});
|
||||
this.props.updateTotalUnseenCount('discussion');
|
||||
}).catch((error) => {
|
||||
this.setState({
|
||||
isLoading: false,
|
||||
@@ -131,6 +133,7 @@ class UserNotificationsDialog extends React.Component {
|
||||
this.setState({
|
||||
items: []
|
||||
});
|
||||
this.props.updateTotalUnseenCount('general');
|
||||
}).catch((error) => {
|
||||
this.setState({
|
||||
isLoading: false,
|
||||
@@ -142,6 +145,7 @@ class UserNotificationsDialog extends React.Component {
|
||||
this.setState({
|
||||
items: []
|
||||
});
|
||||
this.props.updateTotalUnseenCount('discussion');
|
||||
}).catch((error) => {
|
||||
this.setState({
|
||||
isLoading: false,
|
||||
|
Reference in New Issue
Block a user