Skip to content

Commit

Permalink
little bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zazedd committed May 24, 2023
1 parent 3488527 commit 508e9eb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions src/Dashboard.elm
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ playlists =
td [ class "table-dark" ]
[ text playlist.name ]
, td [ class "table-dark" ]
[ a [ href ("https://open.spotify.com/playlist/" ++ playlist.id) ] [ text "Link" ]
[ a [ href playlist.url ] [ text "Link" ]
]

-- , th [ class "table-dark" ]
Expand All @@ -64,12 +64,13 @@ dashboard model =
[ div [ class "center-content" ] [ text "Please login first!" ]
]

Just _ ->
Just u ->
[ p [ id "admintitle" ]
[ text "Dashboard" ]
, div
[ class "admin-content" ]
[ div
[ div [] [ p [ style "margin" "0" ] [ text ("Hi " ++ u.username ++ "!") ] ]
, div
[ style "display" "flex"
, style "justify-content" "center"
, style "align-items"
Expand Down
4 changes: 2 additions & 2 deletions src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -407,15 +407,15 @@ update msg model =
Just p ->
let
url =
"https://open.spotify.com/track/" ++ p.id
"https://open.spotify.com/playlist/" ++ p.id
in
( model, Common.storePlaylist p.name url model.token )

PlaylistStoreRequest _ ->
( { model | errMsg = "Success!" }, Cmd.none )

RestorePlaylist ->
( { model | divvis = { visible1 = True, visible2 = False }, playlist = Nothing, tracks = Nothing, genre = "Rock", mood = 5 }, Cmd.none )
( { model | divvis = { visible1 = True, visible2 = False }, playlist = Nothing, errMsg = "", tracks = Nothing, genre = "Rock", mood = 5 }, Cmd.none )

LogoutSubmit ->
let
Expand Down
6 changes: 3 additions & 3 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ body {
}

.sidebar:hover ~ .main-content {
filter: blur(5px);
filter: blur(3px);
}

.admin-content {
Expand All @@ -164,7 +164,7 @@ body {
}

.sidebar:hover ~ .admin-content {
filter: blur(5px);
filter: blur(3px);
}

table {
Expand Down Expand Up @@ -269,7 +269,7 @@ table {
}

.sidebar:hover ~ .dashboard-content {
filter: blur(5px);
filter: blur(3px);
}

#pls-login {
Expand Down

0 comments on commit 508e9eb

Please sign in to comment.