Fixed: Grab/Delete buttons for pending releases in queue
This commit is contained in:
parent
8cf028e071
commit
359ef04861
|
@ -23,7 +23,8 @@ module.exports = TemplatedCell.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
_remove : function() {
|
_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({
|
vent.trigger(vent.Commands.OpenModalCommand, new RemoveFromQueueView({
|
||||||
model : this.model,
|
model : this.model,
|
||||||
|
|
|
@ -4,9 +4,16 @@
|
||||||
{{/if_eq}}
|
{{/if_eq}}
|
||||||
{{/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-download x-grab" title="Add to download queue (Override Delay Profile)"></i>
|
||||||
<i class="icon-sonarr-delete x-remove" title="Remove pending release"></i>
|
<i class="icon-sonarr-delete x-remove" title="Remove pending release"></i>
|
||||||
{{else}}
|
{{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}}
|
{{/if_eq}}
|
||||||
|
|
Loading…
Reference in New Issue