mirror of
https://github.com/discourse/discourse.git
synced 2026-08-26 05:07:42 -05:00
FIX: Component was not refreshing all the time
This commit is contained in:
@@ -19,7 +19,7 @@ Discourse.BasicTopicListComponent = Ember.Component.extend({
|
||||
|
||||
_topicListChanged: function() {
|
||||
this._initFromTopicList(this.get('topicList'));
|
||||
}.observes('topicList'),
|
||||
}.observes('topicList.@each'),
|
||||
|
||||
_initFromTopicList: function(topicList) {
|
||||
if (topicList !== null) {
|
||||
@@ -27,6 +27,7 @@ Discourse.BasicTopicListComponent = Ember.Component.extend({
|
||||
topics: topicList.get('topics'),
|
||||
sortOrder: topicList.get('sortOrder')
|
||||
});
|
||||
this.rerender();
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -32,4 +32,4 @@ Discourse.UserActivityStreamRoute = Discourse.Route.extend({
|
||||
Discourse["UserActivity" + userAction.classify() + "Route"] = Discourse.UserActivityStreamRoute.extend({
|
||||
userActionType: Discourse.UserAction.TYPES[userAction]
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user