From 46a9d9eeb733c126375841d73a5cec6f84ad7183 Mon Sep 17 00:00:00 2001 From: azimut Date: Tue, 17 Sep 2024 08:28:07 -0300 Subject: [PATCH] ui: use a loader when opening feed --- frontend/src/Main.elm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/Main.elm b/frontend/src/Main.elm index d7db62d..28039b3 100644 --- a/frontend/src/Main.elm +++ b/frontend/src/Main.elm @@ -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 ] []