mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Hide subscribe button when request is available
This commit is contained in:
parent
eea8663f7d
commit
a0e0ae1da3
3 changed files with 12 additions and 3 deletions
|
@ -533,7 +533,10 @@ namespace Ombi.Core.Engine
|
|||
}
|
||||
else
|
||||
{
|
||||
x.ShowSubscribe = true;
|
||||
if (!x.Available && !x.Available4K)
|
||||
{
|
||||
x.ShowSubscribe = true;
|
||||
}
|
||||
var hasSub = sub.FirstOrDefault(r => r.RequestId == x.Id);
|
||||
x.Subscribed = hasSub != null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue