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.
|
Please refresh the screen after fixing this error.
|
||||||
</div>
|
</div>
|
||||||
<div class="table-container">
|
<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">
|
<table class="table is-fullwidth is-hoverable">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -55,15 +64,6 @@
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<button
|
|
||||||
class="button is-danger"
|
|
||||||
(click)="showDeleteModal()"
|
|
||||||
[disabled]="selectedTorrents.length === 0"
|
|
||||||
*ngIf="torrents.length > 0"
|
|
||||||
>
|
|
||||||
Delete Selected
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal" [class.is-active]="isDeleteModalActive">
|
<div class="modal" [class.is-active]="isDeleteModalActive">
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ public class TorrentData
|
||||||
.Include(m => m.Downloads)
|
.Include(m => m.Downloads)
|
||||||
.ToListAsync();
|
.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
|
finally
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue