···33## 2.3.0
4455- Adds ability to download a playlist as a zip file
66+- Asks for confirmation when removing a playlist
67- Fixes dark styles for add-to-playlist overlay
78- Improves CORS information a little bit
89- Improves playlist drag & drop (now moves selection instead of item under cursor)
+16-3
src/Applications/UI.elm
···112112113113type alias Model =
114114 { contextMenu : Maybe (ContextMenu Reply)
115115+ , confirmation : Maybe String
115116 , currentTime : Time.Posix
116117 , darkMode : Bool
117118 , debounce : Debouncer Msg Msg
···169170 Maybe.withDefault Page.Index maybePage
170171 in
171172 { contextMenu = Nothing
173173+ , confirmation = Nothing
172174 , currentTime = Time.millisToPosix flags.initialTime
173175 , darkMode = flags.darkMode
174176 , downloading = Nothing
···10751077 -----------------------------------------
10761078 -- Context Menu
10771079 -----------------------------------------
10801080+ ContextMenuConfirmation conf r ->
10811081+ { model | confirmation = Just conf }
10821082+ |> return
10831083+ |> andThen (translateReply r)
10841084+10781085 ReplyViaContextMenu r ->
10791079- translateReply r { model | contextMenu = Nothing }
10861086+ case r of
10871087+ ContextMenuConfirmation _ _ ->
10881088+ translateReply r model
10891089+10901090+ _ ->
10911091+ translateReply r { model | contextMenu = Nothing }
1080109210811093 ShowMoreAuthenticationOptions coordinates ->
10821094 return { model | contextMenu = Just (Authentication.moreOptionsMenu coordinates) }
1083109510841096 ShowPlaylistListMenu coordinates playlist ->
10851085- return { model | contextMenu = Just (Playlists.listMenu playlist model.tracks.collection.identified coordinates) }
10971097+ return { model | contextMenu = Just (Playlists.listMenu playlist model.tracks.collection.identified model.confirmation coordinates) }
1086109810871099 ShowQueueFutureMenu coordinates { item, itemIndex } ->
10881100 return { model | contextMenu = Just (Queue.futureMenu { cached = model.tracks.cached, cachingInProgress = model.tracks.cachingInProgress, itemIndex = itemIndex } item coordinates) }
···12621274 args
12631275 |> Playlists.RemoveFromCollection
12641276 |> PlaylistsMsg
12651265- |> updateWithModel model
12771277+ |> updateWithModel { model | confirmation = Nothing }
1266127812671279 ReplacePlaylistInCollection playlist ->
12681280 let
···17181730hideOverlay model =
17191731 ( { model
17201732 | alfred = { instance = Nothing }
17331733+ , confirmation = Nothing
17211734 , contextMenu = Nothing
17221735 }
17231736 --