You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Prowlarr/UI/Settings/General/GeneralView.js

25 lines
789 B

'use strict';
define(['app', 'Mixins/AsModelBoundView'], function (App, AsModelBoundView) {
var view = Backbone.Marionette.ItemView.extend({
template: 'Settings/General/GeneralTemplate',
initialize: function () {
NzbDrone.vent.on(NzbDrone.Commands.SaveSettings, this.saveSettings, this);
},
saveSettings: function () {
if (!this.model.isSaved) {
this.model.save(undefined, NzbDrone.Settings.SyncNotificaiton.callback({
successMessage: 'General Settings saved',
errorMessage : "Failed to save General Settings"
}));
}
}
}
);
return AsModelBoundView.call(view);
});