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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user