Fix notification about new items

Don't set the flag when already on "home page".
This commit is contained in:
eikek
2021-11-13 23:04:00 +01:00
parent 7088185e38
commit ce4c192b5b
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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
] ]