mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-01-15 12:11:53 +01:00
24 lines
686 B
JavaScript
24 lines
686 B
JavaScript
'use strict';
|
|
define(
|
|
[
|
|
'vent',
|
|
'AppLayout',
|
|
'marionette'
|
|
], function (vent, AppLayout, Marionette) {
|
|
|
|
return Marionette.AppRouter.extend({
|
|
|
|
initialize: function () {
|
|
vent.on(vent.Commands.OpenControlPanelCommand, this._openControlPanel, this);
|
|
vent.on(vent.Commands.CloseControlPanelCommand, this._closeControlPanel, this);
|
|
},
|
|
|
|
_openControlPanel: function (view) {
|
|
AppLayout.controlPanelRegion.show(view);
|
|
},
|
|
|
|
_closeControlPanel: function () {
|
|
AppLayout.controlPanelRegion.closePanel();
|
|
}
|
|
});
|
|
});
|