mirror of
https://github.com/flarum/core.git
synced 2025-08-11 02:44:04 +02:00
Refactor index pane
So that it only loads when needed, and caches results so things are nice and snappy
This commit is contained in:
@@ -3,7 +3,8 @@ import Ember from 'ember';
|
||||
export default Ember.Component.extend({
|
||||
classNames: ['back-button'],
|
||||
classNameBindings: ['active'],
|
||||
active: Ember.computed.or('target.paneShowing', 'target.panePinned'),
|
||||
|
||||
active: Ember.computed.or('target.paneIsShowing', 'target.paneIsPinned'),
|
||||
|
||||
mouseEnter: function() {
|
||||
this.get('target').send('showPane');
|
||||
@@ -18,9 +19,9 @@ export default Ember.Component.extend({
|
||||
this.get('target').send('transitionFromBackButton');
|
||||
this.set('target', null);
|
||||
},
|
||||
|
||||
togglePinned: function() {
|
||||
this.get('target').send('togglePinned');
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user