mirror of
https://github.com/Lidarr/Lidarr
synced 2026-01-19 05:52:57 +01:00
27 lines
830 B
JavaScript
27 lines
830 B
JavaScript
'use strict';
|
|
|
|
define(
|
|
[
|
|
'marionette',
|
|
'Settings/Metadata/MetadataCollection',
|
|
'Settings/Metadata/MetadataCollectionView'
|
|
], function (Marionette, MetadataCollection, MetadataCollectionView) {
|
|
return Marionette.Layout.extend({
|
|
template: 'Settings/Metadata/MetadataLayoutTemplate',
|
|
|
|
regions: {
|
|
metadata : '#x-metadata-providers'
|
|
},
|
|
|
|
initialize: function (options) {
|
|
this.settings = options.settings;
|
|
this.metadataCollection = new MetadataCollection();
|
|
this.metadataCollection.fetch();
|
|
},
|
|
|
|
onShow: function () {
|
|
this.metadata.show(new MetadataCollectionView({collection: this.metadataCollection}));
|
|
}
|
|
});
|
|
});
|
|
|