1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-23 02:05:27 +02:00
Sonarr/src/UI/Controller.js

78 lines
2.3 KiB
JavaScript
Raw Normal View History

'use strict';
2013-06-21 08:19:41 +03:00
define(
[
2013-10-09 04:43:41 +03:00
'Shared/NzbDroneController',
'AppLayout',
'marionette',
'Activity/ActivityLayout',
2013-06-21 08:19:41 +03:00
'Settings/SettingsLayout',
'AddSeries/AddSeriesLayout',
'Wanted/WantedLayout',
'Calendar/CalendarLayout',
'Release/ReleaseLayout',
'System/SystemLayout',
'SeasonPass/SeasonPassLayout',
2013-12-09 08:25:27 +03:00
'Series/Editor/SeriesEditorLayout'
2013-10-09 04:43:41 +03:00
], function (NzbDroneController,
AppLayout,
Marionette,
ActivityLayout,
SettingsLayout,
AddSeriesLayout,
WantedLayout,
CalendarLayout,
ReleaseLayout,
SystemLayout,
SeasonPassLayout,
2013-12-09 08:25:27 +03:00
SeriesEditorLayout) {
2013-10-09 04:43:41 +03:00
return NzbDroneController.extend({
addSeries: function (action) {
2013-10-09 04:43:41 +03:00
this.setTitle('Add Series');
this.showMainRegion(new AddSeriesLayout({action: action}));
},
calendar: function () {
2013-10-09 04:43:41 +03:00
this.setTitle('Calendar');
this.showMainRegion(new CalendarLayout());
},
settings: function (action) {
2013-10-09 04:43:41 +03:00
this.setTitle('Settings');
this.showMainRegion(new SettingsLayout({ action: action }));
},
wanted: function (action) {
this.setTitle('Wanted');
this.showMainRegion(new WantedLayout({ action: action }));
},
activity: function (action) {
this.setTitle('Activity');
2013-05-03 09:53:32 +03:00
this.showMainRegion(new ActivityLayout({ action: action }));
2013-05-03 09:53:32 +03:00
},
rss: function () {
2013-10-09 04:43:41 +03:00
this.setTitle('RSS');
this.showMainRegion(new ReleaseLayout());
},
system: function (action) {
2013-10-09 04:43:41 +03:00
this.setTitle('System');
this.showMainRegion(new SystemLayout({ action: action }));
2013-07-28 23:20:26 +03:00
},
seasonPass: function () {
2013-10-09 04:43:41 +03:00
this.setTitle('Season Pass');
this.showMainRegion(new SeasonPassLayout());
},
2013-12-09 08:25:27 +03:00
seriesEditor: function () {
this.setTitle('Series Editor');
this.showMainRegion(new SeriesEditorLayout());
}
});
2013-02-16 03:49:25 +03:00
});