mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 11:48:26 -07:00
Settings wired up
This commit is contained in:
parent
9a738e3a65
commit
50f6ec4fc6
23 changed files with 480 additions and 42 deletions
|
@ -3,6 +3,7 @@
|
|||
'Calendar/CalendarCollectionView', 'Shared/NotificationView',
|
||||
'Shared/NotFoundView', 'MainMenuView', 'HeaderView',
|
||||
'Series/Details/SeriesDetailsView', 'Series/EpisodeCollection'],
|
||||
'Settings/SettingsLayout'],
|
||||
function (app, modalRegion) {
|
||||
|
||||
var controller = Backbone.Marionette.Controller.extend({
|
||||
|
@ -42,6 +43,17 @@
|
|||
});
|
||||
},
|
||||
|
||||
settings: function(action, query) {
|
||||
this.setTitle('Settings');
|
||||
|
||||
var settingsModel = new NzbDrone.Settings.SettingsModel();
|
||||
settingsModel.fetch({
|
||||
success: function(settings){
|
||||
NzbDrone.mainRegion.show(new NzbDrone.Settings.SettingsLayout(this, action, query, settings));
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
notFound: function () {
|
||||
this.setTitle('Not Found');
|
||||
NzbDrone.mainRegion.show(new NzbDrone.Shared.NotFoundView(this));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue