mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-21 18:08:25 +00:00
Fix notification about new items
Don't set the flag when already on "home page".
This commit is contained in:
@ -318,7 +318,7 @@ updateWithSub msg model =
|
|||||||
|
|
||||||
newModel =
|
newModel =
|
||||||
{ model
|
{ model
|
||||||
| showNewItemsArrived = isProcessItem
|
| showNewItemsArrived = isProcessItem && model.page /= HomePage
|
||||||
, jobsWaiting = max 0 (model.jobsWaiting - 1)
|
, jobsWaiting = max 0 (model.jobsWaiting - 1)
|
||||||
}
|
}
|
||||||
in
|
in
|
||||||
|
@ -75,7 +75,7 @@ topNavUser auth model =
|
|||||||
[ a
|
[ a
|
||||||
[ class S.infoMessageBase
|
[ class S.infoMessageBase
|
||||||
, class "my-2 px-1 py-1 rounded-lg inline-block hover:opacity-50"
|
, class "my-2 px-1 py-1 rounded-lg inline-block hover:opacity-50"
|
||||||
, classList [ ( "hidden", not model.showNewItemsArrived || model.page == HomePage ) ]
|
, classList [ ( "hidden", not model.showNewItemsArrived ) ]
|
||||||
, Page.href HomePage
|
, Page.href HomePage
|
||||||
, onClick ToggleShowNewItemsArrived
|
, onClick ToggleShowNewItemsArrived
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user