From a87e9a8fd12e0cd0d125dd6f0df9abc5d0cc3256 Mon Sep 17 00:00:00 2001 From: peterino2 Date: Sat, 7 Feb 2026 00:42:34 -0800 Subject: [PATCH] saving --- public/index.html | 4 ++-- public/trackContainer.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/index.html b/public/index.html index b75990b..bc914c5 100644 --- a/public/index.html +++ b/public/index.html @@ -118,8 +118,8 @@
Select a playlist
diff --git a/public/trackContainer.js b/public/trackContainer.js index da84765..5947c79 100644 --- a/public/trackContainer.js +++ b/public/trackContainer.js @@ -274,8 +274,8 @@ showContextMenu(e, track, originalIndex, canEditQueue); }; - // Drag start/end handlers - library always, queue/playlist with permissions - const canDrag = type === 'library' || (type === 'queue' && canEditQueue) || (type === 'playlist' && isPlaylistOwner); + // Drag start/end handlers - library/playlist always (read access), queue needs edit permission + const canDrag = type === 'library' || type === 'playlist' || (type === 'queue' && canEditQueue); console.log(`[Drag] wireTrackEvents: type=${type} canDrag=${canDrag} canEditQueue=${canEditQueue}`); if (canDrag) { div.ondragstart = (e) => handleDragStart(e, track, originalIndex, div);