Something went wrong. Try again.
A music player that connects to your cloud/distributed storage. forked from tokono.ma/diffuse
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485module UI.Sources.ContextMenu exposing (sourceMenu)
import Conditional exposing (ifThenElse)import ContextMenu exposing (..)import Coordinates exposing (Coordinates)import Material.Icons.Round as Iconsimport Sources exposing (Source)import UI.Pageimport UI.Sources.Pageimport UI.Sources.Types as Sourcesimport UI.Types exposing (Msg(..))
-- 🔱
sourceMenu : Source -> Coordinates -> ContextMenu MsgsourceMenu source = ContextMenu [ Item { icon = ifThenElse source.directoryPlaylists Icons.folder Icons.folder_open , label = ifThenElse source.directoryPlaylists "Disable Directory Playlists" "Enable Directory Playlists" , msg = { sourceId = source.id } |> Sources.ToggleDirectoryPlaylists |> SourcesMsg
-- , active = False }
-- , Item { icon = Icons.edit , label = "Edit source" , msg = source.id |> UI.Sources.Page.Edit |> UI.Page.Sources |> ChangeUrlUsingPage
-- , active = False }
-- , Item { icon = Icons.sync , label = "Process source" , msg = [ source ] |> Sources.ProcessSpecific |> SourcesMsg
-- , active = False }
-- , Item { icon = Icons.delete , label = "Remove source" , msg = { sourceId = source.id } |> Sources.RemoveFromCollection |> SourcesMsg , active = False }
-- , Item { icon = Icons.font_download , label = "Rename source" , msg = source.id |> UI.Sources.Page.Rename |> UI.Page.Sources |> ChangeUrlUsingPage
-- , active = False } ]