1
0
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:
Toby Zerner
2015-02-06 10:32:45 +10:30
parent 0365ae6c71
commit 9ddc622929
10 changed files with 142 additions and 228 deletions

View File

@@ -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');
}
}
});