mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 00:53:57 -07:00
Added history details modal
This commit is contained in:
parent
932012d7f9
commit
1c4a687854
9 changed files with 139 additions and 6 deletions
|
@ -5,9 +5,9 @@ define(
|
|||
'marionette',
|
||||
'Series/Edit/EditSeriesView',
|
||||
'Series/Delete/DeleteSeriesView',
|
||||
'Episode/Layout'
|
||||
|
||||
], function (App, Marionette, EditSeriesView, DeleteSeriesView, EpisodeLayout) {
|
||||
'Episode/Layout',
|
||||
'History/Details/HistoryDetailsView'
|
||||
], function (App, Marionette, EditSeriesView, DeleteSeriesView, EpisodeLayout, HistoryDetailsView) {
|
||||
|
||||
var router = Marionette.AppRouter.extend({
|
||||
|
||||
|
@ -16,6 +16,7 @@ define(
|
|||
App.vent.on(App.Commands.EditSeriesCommand, this._editSeries, this);
|
||||
App.vent.on(App.Commands.DeleteSeriesCommand, this._deleteSeries, this);
|
||||
App.vent.on(App.Commands.ShowEpisodeDetails, this._showEpisode, this);
|
||||
App.vent.on(App.Commands.ShowHistoryDetails, this._showHistory, this);
|
||||
},
|
||||
|
||||
_closeModal: function () {
|
||||
|
@ -35,6 +36,11 @@ define(
|
|||
_showEpisode: function (options) {
|
||||
var view = new EpisodeLayout({ model: options.episode, hideSeriesLink: options.hideSeriesLink });
|
||||
App.modalRegion.show(view);
|
||||
},
|
||||
|
||||
_showHistory: function (options) {
|
||||
var view = new HistoryDetailsView({ model: options.history });
|
||||
App.modalRegion.show(view);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue