Merge pull request #4613 from sephrat/subscribe-available

Hide subscribe button when request is closed
pull/4619/head^2
Jamie 3 years ago committed by GitHub
commit e827af7bed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -533,7 +533,10 @@ namespace Ombi.Core.Engine
}
else
{
x.ShowSubscribe = true;
if (!x.Available && !x.Available4K && (!x.Denied ?? true) && (!x.Denied4K ?? true))
{
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.Denied ?? false))
{
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.Denied ?? true))
{
x.ShowSubscribe = true;
}
var result = relevantSubs.FirstOrDefault(s => s.RequestId == x.Id);
x.Subscribed = result != null;
}

Loading…
Cancel
Save