mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 17:13:49 -07:00
fixed saving settings. now done more generically.
This commit is contained in:
parent
d126c6efc1
commit
806e58ed1f
13 changed files with 104 additions and 161 deletions
|
@ -13,24 +13,9 @@ define([
|
|||
'Settings/Notifications/CollectionView',
|
||||
'Settings/Notifications/Collection',
|
||||
'Settings/General/GeneralView',
|
||||
'Settings/Misc/MiscView',
|
||||
'Settings/SyncNotification'
|
||||
'Settings/Misc/MiscView'
|
||||
],
|
||||
function (App,
|
||||
Marionette,
|
||||
SettingsModel,
|
||||
GeneralSettingsModel,
|
||||
NamingView,
|
||||
NamingModel,
|
||||
QualityLayout,
|
||||
IndexerCollectionView,
|
||||
IndexerCollection,
|
||||
DownloadClientView,
|
||||
NotificationCollectionView,
|
||||
NotificationCollection,
|
||||
GeneralView,
|
||||
MiscView,
|
||||
SyncNotification) {
|
||||
function (App, Marionette, SettingsModel, GeneralSettingsModel, NamingView, NamingModel, QualityLayout, IndexerCollectionView, IndexerCollection, DownloadClientView, NotificationCollectionView, NotificationCollection, GeneralView, MiscView) {
|
||||
return Marionette.Layout.extend({
|
||||
template: 'Settings/SettingsLayoutTemplate',
|
||||
|
||||
|
@ -185,13 +170,7 @@ define([
|
|||
},
|
||||
|
||||
save: function () {
|
||||
|
||||
App.vent.trigger(App.Commands.SaveSettings);
|
||||
|
||||
this.settings.saveIfChanged(undefined, SyncNotification.callback({
|
||||
successMessage: 'Settings saved',
|
||||
errorMessage : "Failed to save settings"
|
||||
}));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue