mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-20 22:14:34 -04:00
77b83b521e
New: Download client UI matches other settings Fixed: Prevent drone factory folder from being set to invalid paths/root path for series Fixed: Switching pages in settings will not hide changes Fixed: Test download clients Fixed: Settings are validated before saving
32 lines
1.4 KiB
JavaScript
32 lines
1.4 KiB
JavaScript
'use strict';
|
|
|
|
define(
|
|
[
|
|
'marionette',
|
|
'Settings/DownloadClient/DownloadClientCollection',
|
|
'Settings/DownloadClient/DownloadClientCollectionView',
|
|
'Settings/DownloadClient/Options/DownloadClientOptionsView',
|
|
'Settings/DownloadClient/FailedDownloadHandling/FailedDownloadHandlingView'
|
|
], function (Marionette, DownloadClientCollection, DownloadClientCollectionView, DownloadClientOptionsView, FailedDownloadHandlingView) {
|
|
|
|
return Marionette.Layout.extend({
|
|
template : 'Settings/DownloadClient/DownloadClientLayoutTemplate',
|
|
|
|
regions: {
|
|
downloadClients : '#x-download-clients-region',
|
|
downloadClientOptions : '#x-download-client-options-region',
|
|
failedDownloadHandling : '#x-failed-download-handling-region'
|
|
},
|
|
|
|
initialize: function () {
|
|
this.downloadClientCollection = new DownloadClientCollection();
|
|
this.downloadClientCollection.fetch();
|
|
},
|
|
|
|
onShow: function () {
|
|
this.downloadClients.show(new DownloadClientCollectionView({ collection: this.downloadClientCollection }));
|
|
this.downloadClientOptions.show(new DownloadClientOptionsView({ model: this.model }));
|
|
this.failedDownloadHandling.show(new FailedDownloadHandlingView({ model: this.model }));
|
|
}
|
|
});
|
|
}); |