Merge pull request #1176 from eikek/small-ui-improvements

Fix notification about new items
This commit is contained in:
mergify[bot] 2021-11-14 20:59:52 +00:00 committed by GitHub
commit 1b0436d4c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
] ]