mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 09:03:49 -07:00
Save and add, notif settings cleanup
This commit is contained in:
parent
7f59062215
commit
f7c340d795
15 changed files with 151 additions and 43 deletions
|
@ -2,10 +2,9 @@
|
|||
define([
|
||||
'app',
|
||||
'marionette',
|
||||
'Settings/Notifications/Collection',
|
||||
'Settings/Notifications/ItemView',
|
||||
'Settings/Notifications/AddView'
|
||||
], function (App, Marionette, NotificationCollection, NotificationItemView, AddSelectionNotificationView) {
|
||||
'Settings/Notifications/SchemaModal'
|
||||
], function (App, Marionette, NotificationItemView, SchemaModal) {
|
||||
return Marionette.CompositeView.extend({
|
||||
itemView : NotificationItemView,
|
||||
itemViewContainer: '.notifications',
|
||||
|
@ -16,13 +15,7 @@ define([
|
|||
},
|
||||
|
||||
_openSchemaModal: function () {
|
||||
var schemaCollection = new NotificationCollection();
|
||||
schemaCollection.url = '/api/notification/schema';
|
||||
schemaCollection.fetch();
|
||||
schemaCollection.url = '/api/notification';
|
||||
|
||||
var view = new AddSelectionNotificationView({ collection: schemaCollection, notificationCollection: this.collection});
|
||||
App.modalRegion.show(view);
|
||||
SchemaModal.open(this.collection);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue