Sort torrents newest first, move Delete button to top

This commit is contained in:
pettytreebroker 2023-09-04 22:05:49 +00:00
parent 75f8098f4c
commit a4da009563
2 changed files with 10 additions and 10 deletions

View file

@ -3,6 +3,15 @@
Please refresh the screen after fixing this error.
</div>
<div class="table-container">
<button
class="button is-danger"
(click)="showDeleteModal()"
[disabled]="selectedTorrents.length === 0"
*ngIf="torrents.length > 0"
>
Delete Selected
</button>
<table class="table is-fullwidth is-hoverable">
<thead>
<tr>
@ -55,15 +64,6 @@
</tr>
</tbody>
</table>
<button
class="button is-danger"
(click)="showDeleteModal()"
[disabled]="selectedTorrents.length === 0"
*ngIf="torrents.length > 0"
>
Delete Selected
</button>
</div>
<div class="modal" [class.is-active]="isDeleteModalActive">

View file

@ -27,7 +27,7 @@ public class TorrentData
.Include(m => m.Downloads)
.ToListAsync();
return _torrentCache.OrderBy(m => m.Priority ?? 9999).ThenBy(m => m.Added).ToList();
return _torrentCache.OrderBy(m => m.Priority ?? 9999).ThenByDescending(m => m.Added).ToList();
}
finally
{