mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-28 13:01:28 +02:00
Fixed UI for downloadAllowed
This commit is contained in:
@@ -89,6 +89,7 @@ namespace NzbDrone.Api.Indexers
|
||||
release.InjectFrom(downloadDecision.RemoteEpisode.ParsedEpisodeInfo);
|
||||
release.InjectFrom(downloadDecision);
|
||||
release.Rejections = downloadDecision.Rejections.ToList();
|
||||
release.DownloadAllowed = downloadDecision.RemoteEpisode.DownloadAllowed;
|
||||
|
||||
result.Add(release);
|
||||
}
|
||||
|
@@ -23,6 +23,10 @@
|
||||
|
||||
.download-report-cell {
|
||||
.clickable();
|
||||
|
||||
i {
|
||||
.clickable();
|
||||
}
|
||||
}
|
||||
|
||||
.toggle-cell{
|
||||
|
@@ -14,6 +14,11 @@ define(
|
||||
|
||||
_onClick: function () {
|
||||
|
||||
if (!this.model.get('downloadAllowed'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var self = this;
|
||||
|
||||
this.$el.html('<i class="icon-spinner icon-spin" />');
|
||||
@@ -36,6 +41,10 @@ define(
|
||||
this.$el.html('<i class="icon-download-alt" title="Add to download queue" />');
|
||||
}
|
||||
|
||||
else {
|
||||
this.className = 'no-download-report-cell';
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user