Skip to content

Commit

Permalink
WebUI: Show file filter when Content tab selected on load
Browse files Browse the repository at this point in the history
This fixes a bug where the file filter is only shown when the Content tab is switched to. The filter is not being shown if the Content tab is already selected on page load (due to being previously selected).

PR #21657.
  • Loading branch information
Piccirello authored Oct 25, 2024
1 parent dfe9daf commit e8dc6b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/webui/www/private/scripts/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1506,6 +1506,10 @@ window.addEventListener("DOMContentLoaded", () => {
const showFilesFilter = (selectedTab.id === "propFilesLink") && !this.isCollapsed;
document.getElementById("torrentFilesFilterToolbar").classList.toggle("invisible", !showFilesFilter);
});

const showFilesFilter = (lastUsedTab === "propFilesLink") && !this.isCollapsed;
if (showFilesFilter)
document.getElementById("torrentFilesFilterToolbar").classList.remove("invisible");
},
column: "mainColumn",
height: prop_h
Expand Down

0 comments on commit e8dc6b3

Please sign in to comment.