1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 16:36:47 +02:00

Initialize item-lists on init event; allow items to be hidden

This commit is contained in:
Toby Zerner
2015-03-05 12:06:40 +10:30
parent 109fe23607
commit 98476757ae
4 changed files with 17 additions and 13 deletions

View File

@@ -54,12 +54,14 @@ export default Ember.View.extend(HasItemLists, {
buttonClass: 'btn-primary',
listItemClass: 'primary-control',
}), 'controls');
},
items.pushObjectWithTag(StreamScrubber.extend({
addStreamScrubber: Ember.on('didInsertElement', function() {
this.get('sidebar').pushObjectWithTag(StreamScrubber.extend({
streamContent: this.get('streamContent'),
listItemClass: 'title-control'
}), 'scrubber');
},
}),
populateControls: function(items) {
var view = this;