From 9c2cd94955e07925cb0bd3e51c3fcc0054fcae52 Mon Sep 17 00:00:00 2001 From: dannyzou18 Date: Fri, 19 Apr 2024 11:57:11 -0400 Subject: [PATCH] fixed create_playlist popup --- src/components/create_playlist.rs | 4 ++-- src/components/playlists.rs | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/create_playlist.rs b/src/components/create_playlist.rs index 4c46e02..67702ab 100644 --- a/src/components/create_playlist.rs +++ b/src/components/create_playlist.rs @@ -4,7 +4,7 @@ use leptos::leptos_dom::*; use crate::api::playlists::create_playlist; #[component] -pub fn CreatePlayList(opened: ReadSignal,closer: WriteSignal) -> impl IntoView { +pub fn CreatePlayList(closer: WriteSignal) -> impl IntoView { let (playlist_name, set_playlist_name) = create_signal("".to_string()); @@ -24,7 +24,7 @@ pub fn CreatePlayList(opened: ReadSignal,closer: WriteSignal) -> imp }; view! { -
+
diff --git a/src/components/playlists.rs b/src/components/playlists.rs index 6082b73..9b4849f 100644 --- a/src/components/playlists.rs +++ b/src/components/playlists.rs @@ -34,7 +34,13 @@ pub fn Playlists() -> impl IntoView { New Playlist
- +
} + > + + +
    { move || playlists.get().iter().enumerate().map(|(index,playlist)| view! {