mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-14 00:40:49 +02:00
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
No EOL
1.4 KiB
JavaScript
32 lines
No EOL
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 }));
|
||
}
|
||
});
|
||
}); |