diff options
author | Colin Okay <colin@cicadas.surf> | 2022-10-28 14:47:07 -0500 |
---|---|---|
committer | Colin Okay <colin@cicadas.surf> | 2022-10-28 14:47:07 -0500 |
commit | 7017fb6cd063075f9c05a92dad8446b27b484a4e (patch) | |
tree | 25d1da21149721cc18a909bb8898139d0d93ae5e /home.lisp | |
parent | c734f6b9b9f5fe94e4e0ee8069ee06e44d2f6116 (diff) |
Add: delete playlists
Diffstat (limited to 'home.lisp')
-rw-r--r-- | home.lisp | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -4,10 +4,9 @@ ;;; CLIENT UI -(defun create-new-playlist-form (parent &rest args) - (declare (ignorable args)) +(defun create-new-playlist-form (parent) (with-clog-create parent - (div () + (form () (section (:h2 :content "Create New Playlist")) (label (:content "Playlist Title:")) (form-element (:text :bind pl-title)) @@ -27,14 +26,15 @@ (let ((url (url-to-playlist pl))) (with-clog-create parent - (div () + (div (:bind pl-item) (p () - (a (:link url :content (playlist-title pl) :bind pl-link)))) + (a (:link url :content (playlist-title pl))) + (button (:content "X" :bind btn)))) (set-on-click - pl-link + btn (thunk* - (setf (url (location (connection-body parent))) - url))))))) + (destroy-playlist pl) + (destroy pl-item))))))) (defun create-invite-list-item (invite-list invite) (with-clog-create invite-list |