Sort torrents newest first, move Delete button to top
This commit is contained in:
parent
75f8098f4c
commit
a4da009563
2 changed files with 10 additions and 10 deletions
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue