small wip changes

This commit is contained in:
Jamie Rees 2019-08-19 16:30:54 +01:00
commit e54ec746d6
7 changed files with 113 additions and 37 deletions

View file

@ -38,7 +38,7 @@ namespace Ombi.Store.Entities.Requests
public string RequestStatus {
get
{
if (Approved & Available)
if (Available)
{
return "Common.Available";
}

View file

@ -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;
}
}
}
}