Skip to content

Commit

Permalink
ui: use a loader when opening feed
Browse files Browse the repository at this point in the history
  • Loading branch information
azimut committed Sep 17, 2024
1 parent 91ef311 commit 46a9d9e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions frontend/src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -434,14 +434,18 @@ viewFeed ({ title, id, isSelected } as feed) state now entries =


viewFeedDetails : Feed -> Html Msg
viewFeedDetails { details } =
viewFeedDetails { details, isSelected } =
div
[ class "episode"
]
[ div [ class "feed-details" ] <|
case details of
Nothing ->
[ text "..." ]
if isSelected then
[ Loaders.ballTriangle 60 "#fff" ]

else
[ text "..." ]

Just feedDetails ->
[ img [ src feedDetails.image ] []
Expand Down

0 comments on commit 46a9d9e

Please sign in to comment.