mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-23 22:25:14 -04:00
Metadata settings added to UI
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
'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}));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user