mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-04-23 14:17:46 -04:00
no log: Remove red dot when notification center is empty
This commit is contained in:
parent
275598a393
commit
e8fa5d982f
1 changed files with 6 additions and 0 deletions
|
@ -76,6 +76,12 @@ const NotificationCenter: FunctionComponent = () => {
|
|||
}
|
||||
}, [hasNewProgress, hasNewNotifications]);
|
||||
|
||||
useDidUpdate(() => {
|
||||
if (progress.length === 0 && notifications.length === 0) {
|
||||
setHasNew(false);
|
||||
}
|
||||
}, [progress.length, notifications.length]);
|
||||
|
||||
const [btnState, setBtnState] = useState(State.Idle);
|
||||
|
||||
const totalProgress = useTotalProgress(progress);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue