mirror of https://github.com/Radarr/Radarr
25 lines
591 B
JavaScript
25 lines
591 B
JavaScript
'use strict';
|
|
define(
|
|
[
|
|
'app',
|
|
'marionette'
|
|
], function (App, Marionette) {
|
|
|
|
return Marionette.ItemView.extend({
|
|
template: 'Settings/Quality/Profile/DeleteTemplate',
|
|
|
|
events: {
|
|
'click .x-confirm-delete': '_removeProfile'
|
|
},
|
|
|
|
_removeProfile: function () {
|
|
|
|
this.model.destroy({
|
|
wait: true
|
|
}).done(function () {
|
|
App.vent.trigger(App.Commands.CloseModalCommand);
|
|
});
|
|
}
|
|
});
|
|
});
|