From bdab83e4645d4f63bfbef3393f3ac48d21fe82d3 Mon Sep 17 00:00:00 2001 From: Kamil Date: Mon, 25 Nov 2024 17:20:30 +0000 Subject: [PATCH] UI update to be able to wipe playlist --- templates/partials/_add_remove_button.html | 13 +++++++++++-- templates/partials/_spotify_item.html | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/templates/partials/_add_remove_button.html b/templates/partials/_add_remove_button.html index a8b8dfd..cd91833 100644 --- a/templates/partials/_add_remove_button.html +++ b/templates/partials/_add_remove_button.html @@ -4,9 +4,18 @@ hx-vals='{"item_id": "{{ item.id }}", "item_name": "{{ item.name }}"}'> + {% elif item.can_remove %} - -{% endif %} \ No newline at end of file +{% endif %} +{% if session['is_admin'] and item.can_remove %} + + +{% endif%} \ No newline at end of file diff --git a/templates/partials/_spotify_item.html b/templates/partials/_spotify_item.html index 50df09f..0ffd45d 100644 --- a/templates/partials/_spotify_item.html +++ b/templates/partials/_spotify_item.html @@ -1,4 +1,4 @@ -
+