Fixed: Grab/Delete buttons for pending releases in queue

This commit is contained in:
Mark McDowall 2017-06-18 22:10:52 -07:00
parent 8cf028e071
commit 359ef04861
No known key found for this signature in database
GPG Key ID: D4CEFA9A718052E0
2 changed files with 11 additions and 3 deletions

View File

@ -23,7 +23,8 @@ module.exports = TemplatedCell.extend({
},
_remove : function() {
var showBlacklist = this.model.get('status') !== 'Pending';
var status = this.model.get('status');
var showBlacklist = status !== 'Delay' && status !== 'DownloadClientUnavailable';
vent.trigger(vent.Commands.OpenModalCommand, new RemoveFromQueueView({
model : this.model,

View File

@ -4,9 +4,16 @@
{{/if_eq}}
{{/if_eq}}
{{#if_eq status compare="Pending"}}
{{#if_eq status compare="Delay"}}
<i class="icon-sonarr-download x-grab" title="Add to download queue (Override Delay Profile)"></i>
<i class="icon-sonarr-delete x-remove" title="Remove pending release"></i>
{{else}}
<i class="icon-sonarr-delete x-remove" title="Remove from download client"></i>
{{#unless_eq status compare="DownloadClientUnavailable"}}
<i class="icon-sonarr-delete x-remove" title="Remove from download client"></i>
{{/unless_eq}}
{{/if_eq}}
{{#if_eq status compare="DownloadClientUnavailable"}}
<i class="icon-sonarr-download x-grab" title="Add to download queue (Retry failed download)"></i>
<i class="icon-sonarr-delete x-remove" title="Remove pending release"></i>
{{/if_eq}}