mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
Fixed Indexer delete view
This commit is contained in:
@@ -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',
|
'AppLayout',
|
||||||
'marionette',
|
'marionette',
|
||||||
'Settings/Notifications/DeleteView',
|
'Settings/Indexers/DeleteView',
|
||||||
'Mixins/AsModelBoundView',
|
'Mixins/AsModelBoundView',
|
||||||
'Mixins/AsValidatedView'
|
'Mixins/AsValidatedView'
|
||||||
], function (AppLayout, Marionette, DeleteView, AsModelBoundView, AsValidatedView) {
|
], function (AppLayout, Marionette, DeleteView, AsModelBoundView, AsValidatedView) {
|
||||||
|
|||||||
Reference in New Issue
Block a user