1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-17 21:26:22 -04:00

Manually mark a release as failed to start failed download process (history details)

This commit is contained in:
Mark McDowall
2013-10-30 16:49:53 -07:00
parent 70127125c2
commit da0f04d4c8
5 changed files with 59 additions and 7 deletions

View File

@@ -1,10 +1,30 @@
'use strict';
define(
[
'marionette'
], function (Marionette) {
'vent',
'marionette',
'jquery'
], function (vent, Marionette, $) {
return Marionette.ItemView.extend({
template: 'History/Details/HistoryDetailsViewTemplate'
template: 'History/Details/HistoryDetailsViewTemplate',
events: {
'click .x-mark-as-failed': '_markAsFailed'
},
_markAsFailed: function () {
var url = window.NzbDrone.ApiRoot + '/history/failed';
var data = {
id: this.model.get('id')
};
$.ajax({
url: url,
type: 'POST',
data: data
});
vent.trigger(vent.Commands.CloseModalCommand);
}
});
});

View File

@@ -63,6 +63,7 @@
{{/if_eq}}
</div>
<div class="modal-footer">
{{#if_eq eventType compare="grabbed"}}<button class="btn btn-danger x-mark-as-failed">mark as failed</button>{{/if_eq}}
<button class="btn" data-dismiss="modal">close</button>
</div>
</div>