1
1
mirror of https://github.com/neosubhamoy/neodlp.git synced 2026-02-04 17:42:22 +05:30

feat: added clear, copy log buttons and pagination in completed downloads

This commit is contained in:
2026-01-09 23:40:35 +05:30
Verified
parent 01f4e96101
commit 2b7ab9def4
10 changed files with 214 additions and 15 deletions

View File

@@ -20,8 +20,7 @@ export default function LibraryPage() {
const { pauseDownload } = useAppContext();
const incompleteDownloads = downloadStates.filter(state => state.download_status !== 'completed');
const completedDownloads = downloadStates.filter(state => state.download_status === 'completed')
.sort((a, b) => {
const completedDownloads = downloadStates.filter(state => state.download_status === 'completed').sort((a, b) => {
// Latest updated first
const dateA = a.updated_at ? new Date(a.updated_at).getTime() : 0;
const dateB = b.updated_at ? new Date(b.updated_at).getTime() : 0;