mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-27 16:22:37 +00:00
Fixed Indexer delete view
This commit is contained in:
parent
66504febe0
commit
c0ae876385
3 changed files with 24 additions and 1 deletions
23
src/UI/Settings/Indexers/DeleteView.js
Normal file
23
src/UI/Settings/Indexers/DeleteView.js
Normal file
|
@ -0,0 +1,23 @@
|
|||
'use strict';
|
||||
define(
|
||||
[
|
||||
'vent',
|
||||
'marionette'
|
||||
], function (vent, Marionette) {
|
||||
return Marionette.ItemView.extend({
|
||||
template: 'Settings/Indexers/DeleteViewTemplate',
|
||||
|
||||
events: {
|
||||
'click .x-confirm-delete': '_removeNotification'
|
||||
},
|
||||
|
||||
_removeNotification: function () {
|
||||
this.model.destroy({
|
||||
wait : true,
|
||||
success: function () {
|
||||
vent.trigger(vent.Commands.CloseModalCommand);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
|
@ -4,7 +4,7 @@ define(
|
|||
[
|
||||
'AppLayout',
|
||||
'marionette',
|
||||
'Settings/Notifications/DeleteView',
|
||||
'Settings/Indexers/DeleteView',
|
||||
'Mixins/AsModelBoundView',
|
||||
'Mixins/AsValidatedView'
|
||||
], function (AppLayout, Marionette, DeleteView, AsModelBoundView, AsValidatedView) {
|
||||
|
|
Loading…
Reference in a new issue