1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-03-07 15:20:58 +02:00
Sonarr/src/UI/Controller.js

87 lines
2.5 KiB
JavaScript
Raw Normal View History

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