mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-29 11:05:44 +00:00
20 lines
653 B
JavaScript
20 lines
653 B
JavaScript
|
'use strict';
|
|||
|
define([
|
|||
|
'app',
|
|||
|
'Settings/Notifications/Collection',
|
|||
|
'Settings/Notifications/AddView'
|
|||
|
], function (App, NotificationCollection, AddSelectionNotificationView) {
|
|||
|
return ({
|
|||
|
|
|||
|
open: function (collection) {
|
|||
|
var schemaCollection = new NotificationCollection();
|
|||
|
schemaCollection.url = '/api/notification/schema';
|
|||
|
schemaCollection.fetch();
|
|||
|
schemaCollection.url = '/api/notification';
|
|||
|
|
|||
|
var view = new AddSelectionNotificationView({ collection: schemaCollection, notificationCollection: collection});
|
|||
|
App.modalRegion.show(view);
|
|||
|
}
|
|||
|
});
|
|||
|
});
|