mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-28 02:37:40 +00:00
29 lines
893 B
JavaScript
29 lines
893 B
JavaScript
|
"use strict";
|
|||
|
|
|||
|
define(
|
|||
|
[
|
|||
|
'marionette',
|
|||
|
'Settings/Indexers/CollectionView',
|
|||
|
'Settings/Indexers/Options/View'
|
|||
|
], function (Marionette, CollectionView, OptionsView) {
|
|||
|
return Marionette.Layout.extend({
|
|||
|
template: 'Settings/Indexers/LayoutTemplate',
|
|||
|
|
|||
|
regions: {
|
|||
|
indexersRegion : '#indexers-collection',
|
|||
|
indexerOptions : '#indexer-options'
|
|||
|
},
|
|||
|
|
|||
|
initialize: function (options) {
|
|||
|
this.settings = options.settings;
|
|||
|
this.indexersCollection = options.indexersCollection;
|
|||
|
},
|
|||
|
|
|||
|
onShow: function () {
|
|||
|
this.indexersRegion.show(new CollectionView({ collection: this.indexersCollection }));
|
|||
|
this.indexerOptions.show(new OptionsView({ model: this.settings }));
|
|||
|
}
|
|||
|
});
|
|||
|
});
|
|||
|
|