WebUI: Quality Profile tile visible via tab filter (drop fragile Soulseek gate)
The Soulseek-only JS gate fought the settings tab filter for control of the tile's display: gating the inner group left an empty expandable shell, gating the wrapper hid the whole tile depending on activeSources/tab timing. Remove the JS gate entirely and let the tab filter (data-stg="downloads" on #quality-profile-tile) own visibility — identical to the working Retry Logic tile. The tile now reliably shows on the Downloads tab. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
81291c198b
commit
87a4e41f9e
1 changed files with 7 additions and 9 deletions
|
|
@ -1711,15 +1711,13 @@ function updateDownloadSourceUI() {
|
||||||
prowlarrRedirect.style.display = showProwlarr ? 'block' : 'none';
|
prowlarrRedirect.style.display = showProwlarr ? 'block' : 'none';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Quality profile is Soulseek-only and downloads-tab-only. Gate the whole
|
// Quality Profile tile visibility is handled entirely by the settings tab
|
||||||
// collapsible tile (header + body) — gating just the inner #quality-profile-section
|
// filter (data-stg="downloads" on #quality-profile-tile) — the same mechanism
|
||||||
// left the tile header expandable to an empty body.
|
// the Retry Logic tile uses. The old Soulseek-only JS gate fought the tab
|
||||||
const qualityProfileTile = document.getElementById('quality-profile-tile');
|
// filter for control of `display` and, depending on activeSources/tab timing,
|
||||||
if (qualityProfileTile) {
|
// left the tile either empty (when it gated the inner group) or fully hidden
|
||||||
const activeTab = document.querySelector('.stg-tab.active');
|
// (when it gated the wrapper). Letting the tab filter own visibility makes it
|
||||||
const onDownloadsTab = activeTab && activeTab.dataset.tab === 'downloads';
|
// behave exactly like the working Retry Logic tile.
|
||||||
qualityProfileTile.style.display = (activeSources.has('soulseek') && onDownloadsTab) ? '' : 'none';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (activeSources.has('tidal')) {
|
if (activeSources.has('tidal')) {
|
||||||
checkTidalDownloadAuthStatus();
|
checkTidalDownloadAuthStatus();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue