mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-01-06 08:46:34 +00:00
Basic UI + Wizard for custom naming added
This commit is contained in:
@@ -8,8 +8,9 @@ define(
|
||||
'Series/Delete/DeleteSeriesView',
|
||||
'Episode/EpisodeDetailsLayout',
|
||||
'History/Details/HistoryDetailsView',
|
||||
'System/Logs/Table/Details/LogDetailsView'
|
||||
], function (vent, AppLayout, Marionette, EditSeriesView, DeleteSeriesView, EpisodeDetailsLayout, HistoryDetailsView, LogDetailsView) {
|
||||
'System/Logs/Table/Details/LogDetailsView',
|
||||
'Settings/MediaManagement/Naming/Wizard/NamingWizardView'
|
||||
], function (vent, AppLayout, Marionette, EditSeriesView, DeleteSeriesView, EpisodeDetailsLayout, HistoryDetailsView, LogDetailsView, NamingWizardView) {
|
||||
|
||||
return Marionette.AppRouter.extend({
|
||||
|
||||
@@ -20,6 +21,7 @@ define(
|
||||
vent.on(vent.Commands.ShowEpisodeDetails, this._showEpisode, this);
|
||||
vent.on(vent.Commands.ShowHistoryDetails, this._showHistory, this);
|
||||
vent.on(vent.Commands.ShowLogDetails, this._showLogDetails, this);
|
||||
vent.on(vent.Commands.ShowNamingWizard, this._showNamingWizard, this);
|
||||
},
|
||||
|
||||
_closeModal: function () {
|
||||
@@ -49,6 +51,11 @@ define(
|
||||
_showLogDetails: function (options) {
|
||||
var view = new LogDetailsView({ model: options.model });
|
||||
AppLayout.modalRegion.show(view);
|
||||
},
|
||||
|
||||
_showNamingWizard: function (options) {
|
||||
var view = new NamingWizardView({ model: options.model });
|
||||
AppLayout.modalRegion.show(view);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user