Hide subscribe button when request is available

pull/4613/head
sephrat 3 years ago
parent eea8663f7d
commit a0e0ae1da3

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

@ -270,7 +270,10 @@ namespace Ombi.Core.Engine
}
else
{
x.ShowSubscribe = true;
if (!x.Available)
{
x.ShowSubscribe = true;
}
var hasSub = sub.FirstOrDefault(r => r.RequestId == x.Id);
x.Subscribed = hasSub != null;
}

@ -886,7 +886,10 @@ namespace Ombi.Core.Engine
}
else
{
x.ShowSubscribe = true;
if (!x.Available)
{
x.ShowSubscribe = true;
}
var result = relevantSubs.FirstOrDefault(s => s.RequestId == x.Id);
x.Subscribed = result != null;
}

Loading…
Cancel
Save