mirror of
https://github.com/Radarr/Radarr
synced 2025-02-22 14:21:14 +00:00
Fixed UI for downloadAllowed
This commit is contained in:
parent
c5908c52a5
commit
a5528f00cb
3 changed files with 14 additions and 0 deletions
|
@ -89,6 +89,7 @@ private static List<ReleaseResource> MapDecisions(IEnumerable<DownloadDecision>
|
||||||
release.InjectFrom(downloadDecision.RemoteEpisode.ParsedEpisodeInfo);
|
release.InjectFrom(downloadDecision.RemoteEpisode.ParsedEpisodeInfo);
|
||||||
release.InjectFrom(downloadDecision);
|
release.InjectFrom(downloadDecision);
|
||||||
release.Rejections = downloadDecision.Rejections.ToList();
|
release.Rejections = downloadDecision.Rejections.ToList();
|
||||||
|
release.DownloadAllowed = downloadDecision.RemoteEpisode.DownloadAllowed;
|
||||||
|
|
||||||
result.Add(release);
|
result.Add(release);
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,6 +23,10 @@
|
||||||
|
|
||||||
.download-report-cell {
|
.download-report-cell {
|
||||||
.clickable();
|
.clickable();
|
||||||
|
|
||||||
|
i {
|
||||||
|
.clickable();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.toggle-cell{
|
.toggle-cell{
|
||||||
|
|
|
@ -14,6 +14,11 @@ define(
|
||||||
|
|
||||||
_onClick: function () {
|
_onClick: function () {
|
||||||
|
|
||||||
|
if (!this.model.get('downloadAllowed'))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
this.$el.html('<i class="icon-spinner icon-spin" />');
|
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" />');
|
this.$el.html('<i class="icon-download-alt" title="Add to download queue" />');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else {
|
||||||
|
this.className = 'no-download-report-cell';
|
||||||
|
}
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue