1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 19:29:56 +00:00

feat: change favicon after notification read all

This commit is contained in:
liuhongbo
2024-03-01 15:22:47 +08:00
parent 0cadfc88dc
commit fb17628cc8
2 changed files with 13 additions and 1 deletions

View File

@@ -43,6 +43,10 @@ export default class SdocEditor extends React.Component {
this.onSetFavicon('_notification');
};
onNotificationCleared = () => {
this.onSetFavicon();
};
getDirPath = () => {
const { docPath } = window.seafile;
const index = docPath.lastIndexOf('/');
@@ -87,6 +91,7 @@ export default class SdocEditor extends React.Component {
toggleStar={this.toggleStar}
unmarkDraft={this.unmarkDraft}
onNewNotification={this.onNewNotification}
onNotificationCleared={this.onNotificationCleared}
/>
</Fragment>
);