mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Fixed the sorting and filtering on the Movie Requests page, it all functions correctly now
This commit is contained in:
parent
5dc5122841
commit
7dd5805f3f
13 changed files with 257 additions and 202 deletions
11
src/Ombi.Core/Models/UI/OrderFilterModel.cs
Normal file
11
src/Ombi.Core/Models/UI/OrderFilterModel.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
using Ombi.Core.Models.Requests;
|
||||
|
||||
namespace Ombi.Core.Models.UI
|
||||
{
|
||||
public class OrderFilterModel
|
||||
{
|
||||
public FilterType AvailabilityFilter { get; set; }
|
||||
public FilterType StatusFilter { get; set; }
|
||||
public OrderType OrderType { get; set; }
|
||||
}
|
||||
}
|
12
src/Ombi.Core/Models/UI/OrderType.cs
Normal file
12
src/Ombi.Core/Models/UI/OrderType.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
namespace Ombi.Core.Models.UI
|
||||
{
|
||||
public enum OrderType
|
||||
{
|
||||
RequestedDateAsc =1,
|
||||
RequestedDateDesc =2,
|
||||
TitleAsc =3,
|
||||
TitleDesc=4,
|
||||
StatusAsc=5,
|
||||
StatusDesc=6
|
||||
}
|
||||
}
|
10
src/Ombi.Core/Models/UI/RequestsViewModel.cs
Normal file
10
src/Ombi.Core/Models/UI/RequestsViewModel.cs
Normal file
|
@ -0,0 +1,10 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Ombi.Core.Models.UI
|
||||
{
|
||||
public class RequestsViewModel<T>
|
||||
{
|
||||
public IEnumerable<T> Collection { get; set; }
|
||||
public int Total { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue