mirror of
https://github.com/Lidarr/Lidarr
synced 2026-03-05 03:55:47 +01:00
New: Select preferred protocol (usenet/torrent) New: Option to delay grabs from usenet/torrents independently
34 lines
1.2 KiB
JavaScript
34 lines
1.2 KiB
JavaScript
'use strict';
|
|
|
|
define(
|
|
[
|
|
'marionette',
|
|
'Profile/ProfileCollection',
|
|
'Settings/Profile/ProfileCollectionView',
|
|
'Settings/Profile/Delay/DelayProfileLayout',
|
|
'Settings/Profile/Delay/DelayProfileCollection',
|
|
'Settings/Profile/Language/LanguageCollection'
|
|
], function (Marionette, ProfileCollection, ProfileCollectionView, DelayProfileLayout, DelayProfileCollection, LanguageCollection) {
|
|
return Marionette.Layout.extend({
|
|
template: 'Settings/Profile/ProfileLayoutTemplate',
|
|
|
|
regions: {
|
|
profile : '#profile',
|
|
delayProfile : '#delay-profile'
|
|
},
|
|
|
|
initialize: function (options) {
|
|
this.settings = options.settings;
|
|
ProfileCollection.fetch();
|
|
|
|
this.delayProfileCollection = new DelayProfileCollection();
|
|
this.delayProfileCollection.fetch();
|
|
},
|
|
|
|
onShow: function () {
|
|
this.profile.show(new ProfileCollectionView({collection: ProfileCollection}));
|
|
this.delayProfile.show(new DelayProfileLayout({collection: this.delayProfileCollection}));
|
|
}
|
|
});
|
|
});
|
|
|