mirror of
https://github.com/Readarr/Readarr.git
synced 2026-03-28 18:05:51 -04:00
Fixed: Exception when navigating away from series details view while it is still loading
This commit is contained in:
@@ -214,7 +214,9 @@ define(
|
||||
series : self.model
|
||||
});
|
||||
|
||||
self.seasons.show(seasonCollectionView);
|
||||
if (!self.isClosed) {
|
||||
self.seasons.show(seasonCollectionView);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
@@ -9,15 +9,15 @@ define(
|
||||
return Marionette.AppRouter.extend({
|
||||
|
||||
initialize: function () {
|
||||
vent.on(vent.Commands.OpenControlPanelCommand, this._openModal, this);
|
||||
vent.on(vent.Commands.CloseControlPanelCommand, this._closeModal, this);
|
||||
vent.on(vent.Commands.OpenControlPanelCommand, this._openControlPanel, this);
|
||||
vent.on(vent.Commands.CloseControlPanelCommand, this._closeControlPanel, this);
|
||||
},
|
||||
|
||||
_openModal: function (view) {
|
||||
_openControlPanel: function (view) {
|
||||
AppLayout.controlPanelRegion.show(view);
|
||||
},
|
||||
|
||||
_closeModal: function () {
|
||||
_closeControlPanel: function () {
|
||||
AppLayout.controlPanelRegion.closePanel();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user