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:
@@ -7,7 +7,7 @@ import SeparatorItem from 'flarum/components/ui/separator-item';
|
||||
export default Ember.Mixin.create({
|
||||
itemLists: [],
|
||||
|
||||
initItemLists: Ember.on('didInsertElement', function() {
|
||||
initItemLists: Ember.on('init', function() {
|
||||
var self = this;
|
||||
this.get('itemLists').forEach(function(name) {
|
||||
self.initItemList(name);
|
||||
|
Reference in New Issue
Block a user