diff options
Diffstat (limited to 'client/components/sidebar')
-rw-r--r-- | client/components/sidebar/sidebar.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/components/sidebar/sidebar.js b/client/components/sidebar/sidebar.js index 7da67476..01612835 100644 --- a/client/components/sidebar/sidebar.js +++ b/client/components/sidebar/sidebar.js @@ -34,6 +34,7 @@ BlazeComponent.extendComponent({ open: function() { if (! this._isOpen.get()) { this._isOpen.set(true); + EscapeActions.executeUpTo('detailsPane'); } }, @@ -67,7 +68,10 @@ BlazeComponent.extendComponent({ setView: function(view) { view = _.isString(view) ? view : defaultView; - this._view.set(view); + if (this._view.get() !== view) { + this._view.set(view); + EscapeActions.executeUpTo('detailsPane'); + } this.open(); }, |