mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-22 22:15:17 -04:00
22 lines
717 B
JavaScript
22 lines
717 B
JavaScript
'use strict';
|
|
|
|
define([
|
|
'AppLayout',
|
|
'Settings/Notifications/NotificationCollection',
|
|
'Settings/Notifications/Add/NotificationAddCollectionView'
|
|
], function (AppLayout, SchemaCollection, AddCollectionView) {
|
|
return ({
|
|
|
|
open: function (collection) {
|
|
var schemaCollection = new SchemaCollection();
|
|
var originalUrl = schemaCollection.url;
|
|
schemaCollection.url = schemaCollection.url + '/schema';
|
|
schemaCollection.fetch();
|
|
schemaCollection.url = originalUrl;
|
|
|
|
var view = new AddCollectionView({ collection: schemaCollection, targetCollection: collection});
|
|
AppLayout.modalRegion.show(view);
|
|
}
|
|
});
|
|
});
|