Radarr/src/UI/Controller.js
Mark McDowall 8388092bf5 Fixed manually download will show queued when downloading
Fixed: Manually download will change icons when sent to download client
2013-11-11 19:59:52 -08:00

78 lines
2.3 KiB
JavaScript

'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'
], function (NzbDroneController,
AppLayout,
Marionette,
HistoryLayout,
SettingsLayout,
AddSeriesLayout,
MissingLayout,
CalendarLayout,
ReleaseLayout,
SystemLayout,
SeasonPassLayout,
UpdateLayout) {
return NzbDroneController.extend({
addSeries: function (action) {
this.setTitle('Add Series');
AppLayout.mainRegion.show(new AddSeriesLayout({action: action}));
},
calendar: function () {
this.setTitle('Calendar');
AppLayout.mainRegion.show(new CalendarLayout());
},
settings: function (action) {
this.setTitle('Settings');
AppLayout.mainRegion.show(new SettingsLayout({ action: action }));
},
missing: function () {
this.setTitle('Missing');
AppLayout.mainRegion.show(new MissingLayout());
},
history: function (action) {
this.setTitle('History');
AppLayout.mainRegion.show(new HistoryLayout({ action: action }));
},
rss: function () {
this.setTitle('RSS');
AppLayout.mainRegion.show(new ReleaseLayout());
},
system: function (action) {
this.setTitle('System');
AppLayout.mainRegion.show(new SystemLayout({ action: action }));
},
seasonPass: function () {
this.setTitle('Season Pass');
AppLayout.mainRegion.show(new SeasonPassLayout());
},
update: function () {
this.setTitle('Updates');
AppLayout.mainRegion.show(new UpdateLayout());
}
});
});