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.
Lidarr/src/UI/Controller.js

87 lines
2.5 KiB

'use strict';
define(
[
'Shared/NzbDroneController',
'AppLayout',
'marionette',
'History/HistoryLayout',
'Settings/SettingsLayout',
'AddSeries/AddSeriesLayout',
'Missing/MissingLayout',
'Calendar/CalendarLayout',
'Release/ReleaseLayout',
'System/SystemLayout',
'SeasonPass/SeasonPassLayout',
'System/Update/UpdateLayout',
'Series/Editor/SeriesEditorLayout'
], function (NzbDroneController,
AppLayout,
Marionette,
HistoryLayout,
SettingsLayout,
AddSeriesLayout,
MissingLayout,
CalendarLayout,
ReleaseLayout,
SystemLayout,
SeasonPassLayout,
UpdateLayout,
SeriesEditorLayout) {
return NzbDroneController.extend({
addSeries: function (action) {
this.setTitle('Add Series');
this.showMainRegion(new AddSeriesLayout({action: action}));
},
calendar: function () {
this.setTitle('Calendar');
this.showMainRegion(new CalendarLayout());
},
settings: function (action) {
this.setTitle('Settings');
this.showMainRegion(new SettingsLayout({ action: action }));
},
missing: function () {
this.setTitle('Missing');
this.showMainRegion(new MissingLayout());
},
history: function (action) {
this.setTitle('History');
12 years ago
this.showMainRegion(new HistoryLayout({ action: action }));
12 years ago
},
rss: function () {
this.setTitle('RSS');
this.showMainRegion(new ReleaseLayout());
},
system: function (action) {
this.setTitle('System');
this.showMainRegion(new SystemLayout({ action: action }));
},
seasonPass: function () {
this.setTitle('Season Pass');
this.showMainRegion(new SeasonPassLayout());
},
update: function () {
this.setTitle('Updates');
this.showMainRegion(new UpdateLayout());
},
seriesEditor: function () {
this.setTitle('Series Editor');
this.showMainRegion(new SeriesEditorLayout());
}
});
});