From 13d44f3ba094c3c0d40372eb84bda387b3b58db2 Mon Sep 17 00:00:00 2001 From: BoulderBadgeDad Date: Tue, 16 Jun 2026 12:11:05 -0700 Subject: [PATCH] Remove download button and logic from video modal Remove the 'Download' button and all related handling from the video-get modal. The diff deletes the data-vgm-download button markup, removes download branching in the click handler and the isDl flag, and stops updating download text/disabled state in the UI refresh. The wishlist path is now the single visual flow (toast always reports Wishlist + optional Watchlist); actual write and download-from-wishlist behavior will be implemented later. --- webui/static/video/video-get-modal.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/webui/static/video/video-get-modal.js b/webui/static/video/video-get-modal.js index 8226c7c9..bbfa7a98 100644 --- a/webui/static/video/video-get-modal.js +++ b/webui/static/video/video-get-modal.js @@ -96,7 +96,6 @@ '
' + '' + '' + - '' + '' + '
' + ''; @@ -121,14 +120,14 @@ sh.parentNode.classList.toggle('vgm-season--open'); return; } - if (e.target.closest('[data-vgm-wishlist]') || e.target.closest('[data-vgm-download]')) { - // v1: visual only — real wishlist/download is a later phase. + if (e.target.closest('[data-vgm-wishlist]')) { + // v1: visual only — everything funnels through the wishlist; the + // real write + download-from-wishlist come later. var n = modalState ? modalState.sel.size : 0; - var isDl = !!e.target.closest('[data-vgm-download]'); var aw = ov.querySelector('[data-vgm-add-watch]'); - var follow = (!isDl && aw && aw.checked) ? ' + Watchlist' : ''; + var follow = (aw && aw.checked) ? ' + Watchlist' : ''; toast((modalState ? (n + ' episode' + (n === 1 ? '' : 's') + ' — ') : '') + - (isDl ? 'Download' : 'Wishlist') + follow + ' coming soon', 'info'); + 'Wishlist' + follow + ' coming soon', 'info'); } }); ov.addEventListener('change', function (e) { @@ -199,15 +198,12 @@ var n = modalState ? modalState.sel.size : 0; var cnt = modalEl.querySelector('[data-vgm-count]'); var add = modalEl.querySelector('[data-vgm-wishlist]'); - var dl = modalEl.querySelector('[data-vgm-download]'); if (modalState && modalState.kind === 'show') { if (cnt) cnt.textContent = n + ' episode' + (n === 1 ? '' : 's') + ' selected'; if (add) { add.textContent = '+ Add ' + n + ' to Wishlist'; add.disabled = n === 0; } - if (dl) { dl.textContent = 'Download ' + n; dl.disabled = n === 0; } } else { if (cnt) cnt.textContent = ''; if (add) { add.textContent = '+ Add to Wishlist'; add.disabled = false; } - if (dl) { dl.textContent = 'Download'; dl.disabled = false; } } }