A music player that connects to your cloud/distributed storage.
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

Slight improvement to the handling of search results

+11 -6
+11 -6
src/Applications/UI/Tracks.elm
··· 200 200 R3.withNothing model 201 201 202 202 SetSearchResults json -> 203 - json 204 - |> Json.decodeValue (Json.list Json.string) 205 - |> Result.withDefault [] 206 - |> (\results -> { model | searchResults = Just results }) 207 - |> reviseCollection harvest 208 - |> N5.addReply (ToggleLoadingScreen Off) 203 + case model.searchTerm of 204 + Just _ -> 205 + json 206 + |> Json.decodeValue (Json.list Json.string) 207 + |> Result.withDefault [] 208 + |> (\results -> { model | searchResults = Just results }) 209 + |> reviseCollection harvest 210 + |> N5.addReply (ToggleLoadingScreen Off) 211 + 212 + Nothing -> 213 + R3.withNothing model 209 214 210 215 SetSearchTerm term -> 211 216 R3.withReply