mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 05:13:18 -07:00
Request grid now shows available
This commit is contained in:
parent
b5043d0580
commit
76dfcdf646
3 changed files with 26 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue