Request grid now shows available

This commit is contained in:
Jamie Rees 2019-07-05 16:26:39 +01:00
commit 76dfcdf646
3 changed files with 26 additions and 10 deletions

View file

@ -33,5 +33,28 @@ namespace Ombi.Store.Entities.Requests
[NotMapped]
[JsonIgnore]
public string LanguageCode => LangCode.IsNullOrEmpty() ? "en" : LangCode;
[NotMapped]
public string RequestStatus {
get
{
if (Approved & Available)
{
return "Common.Available";
}
if (Approved & !Available)
{
return "Common.ProcessingRequest";
}
if (!Approved && !Available)
{
return "Common.PendingApproval";
}
return string.Empty;
}
}
}
}