mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-11 20:17:46 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user