fix: resolve queue management and metadata fetch bugs

- Reset isRemoving state in DeleteConfirmationModal on open and close to prevent UI freeze
- Filter sidebar queue count to exclude completed downloads
- Return fully resolved URL from backend metadata fetch to avoid 403s on one-time tokens
This commit is contained in:
NimBold
2026-06-21 14:57:21 +03:30
parent 3660ceb47a
commit d535bdac8f
5 changed files with 14 additions and 5 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ export const Sidebar: React.FC<SidebarProps> = (props) => {
const getCount = (filter: SidebarFilter) => {
if (filter.startsWith('queue:')) {
const qid = filter.replace('queue:', '');
return downloads.filter(d => d.queueId === qid).length;
return downloads.filter(d => d.queueId === qid && d.status !== 'completed').length;
}
switch (filter) {
case 'all': return downloads.length;