mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
--HG-- rename : src/NzbDrone.Api/Missing/MissingModule.cs => src/NzbDrone.Api/Wanted/MissingModule.cs rename : src/UI/Missing/ControlsColumnTemplate.html => src/UI/Wanted/ControlsColumnTemplate.html rename : src/UI/Missing/MissingCollection.js => src/UI/Wanted/Missing/MissingCollection.js rename : src/UI/Missing/MissingLayout.js => src/UI/Wanted/WantedLayout.js rename : src/UI/Missing/MissingLayoutTemplate.html => src/UI/Wanted/WantedLayoutTemplate.html extra : source : 2c76f3e423d39446f3bd7799b7344d7be63c70f5
86 lines
2.5 KiB
JavaScript
86 lines
2.5 KiB
JavaScript
'use strict';
|
|
define(
|
|
[
|
|
'Shared/NzbDroneController',
|
|
'AppLayout',
|
|
'marionette',
|
|
'History/HistoryLayout',
|
|
'Settings/SettingsLayout',
|
|
'AddSeries/AddSeriesLayout',
|
|
'Wanted/WantedLayout',
|
|
'Calendar/CalendarLayout',
|
|
'Release/ReleaseLayout',
|
|
'System/SystemLayout',
|
|
'SeasonPass/SeasonPassLayout',
|
|
'System/Update/UpdateLayout',
|
|
'Series/Editor/SeriesEditorLayout'
|
|
], function (NzbDroneController,
|
|
AppLayout,
|
|
Marionette,
|
|
HistoryLayout,
|
|
SettingsLayout,
|
|
AddSeriesLayout,
|
|
WantedLayout,
|
|
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 }));
|
|
},
|
|
|
|
wanted: function (action) {
|
|
this.setTitle('Wanted');
|
|
|
|
this.showMainRegion(new WantedLayout({ action: action }));
|
|
},
|
|
|
|
history: function (action) {
|
|
this.setTitle('History');
|
|
|
|
this.showMainRegion(new HistoryLayout({ action: action }));
|
|
},
|
|
|
|
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());
|
|
}
|
|
|
|
});
|
|
});
|
|
|