mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 09:17:30 +08:00
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() {
|
||||
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]
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user