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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user