FIX: Component was not refreshing all the time
This commit is contained in:
parent
58247a51e8
commit
9db044d54b
|
@ -19,7 +19,7 @@ Discourse.BasicTopicListComponent = Ember.Component.extend({
|
||||||
|
|
||||||
_topicListChanged: function() {
|
_topicListChanged: function() {
|
||||||
this._initFromTopicList(this.get('topicList'));
|
this._initFromTopicList(this.get('topicList'));
|
||||||
}.observes('topicList'),
|
}.observes('topicList.@each'),
|
||||||
|
|
||||||
_initFromTopicList: function(topicList) {
|
_initFromTopicList: function(topicList) {
|
||||||
if (topicList !== null) {
|
if (topicList !== null) {
|
||||||
|
@ -27,6 +27,7 @@ Discourse.BasicTopicListComponent = Ember.Component.extend({
|
||||||
topics: topicList.get('topics'),
|
topics: topicList.get('topics'),
|
||||||
sortOrder: topicList.get('sortOrder')
|
sortOrder: topicList.get('sortOrder')
|
||||||
});
|
});
|
||||||
|
this.rerender();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue