mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 13:23:20 -07:00
small wip changes
This commit is contained in:
parent
4b7d7410ae
commit
e54ec746d6
7 changed files with 113 additions and 37 deletions
|
@ -38,7 +38,7 @@ namespace Ombi.Store.Entities.Requests
|
|||
public string RequestStatus {
|
||||
get
|
||||
{
|
||||
if (Approved & Available)
|
||||
if (Available)
|
||||
{
|
||||
return "Common.Available";
|
||||
}
|
||||
|
|
|
@ -34,5 +34,29 @@ namespace Ombi.Store.Repository.Requests
|
|||
public SeasonRequests Season { get; set; }
|
||||
|
||||
[NotMapped] public string AirDateDisplay => AirDate == DateTime.MinValue ? "Unknown" : AirDate.ToString(CultureInfo.InvariantCulture);
|
||||
|
||||
[NotMapped]
|
||||
public string RequestStatus
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Available)
|
||||
{
|
||||
return "Common.Available";
|
||||
}
|
||||
|
||||
if (Approved & !Available)
|
||||
{
|
||||
return "Common.ProcessingRequest";
|
||||
}
|
||||
|
||||
if (!Approved && !Available)
|
||||
{
|
||||
return "Common.PendingApproval";
|
||||
}
|
||||
|
||||
return string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue