mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 21:10:17 +08:00
FIX: delegation error when reloading user activity
This commit is contained in:
parent
4f60eb6c77
commit
d7f28baf77
|
@ -4,6 +4,7 @@ export default Discourse.Route.extend({
|
|||
},
|
||||
|
||||
setupController: function(controller, user) {
|
||||
this.controllerFor('user-activity').set('model', user);
|
||||
this.controllerFor('user').set('pmView', null);
|
||||
|
||||
// Bring up a draft
|
||||
|
|
|
@ -5,11 +5,7 @@ Discourse.UserTopicListRoute = Discourse.Route.extend({
|
|||
|
||||
setupController: function(controller, model) {
|
||||
this.controllerFor('user').set('indexStream', false);
|
||||
try {
|
||||
this.controllerFor('user_activity').set('userActionType', this.get('userActionType'));
|
||||
} catch (e){
|
||||
/* ROBIN FIX ME: fails on reload of PM */
|
||||
}
|
||||
this.controllerFor('user-activity').set('userActionType', this.get('userActionType'));
|
||||
this.controllerFor('user_topics_list').setProperties({
|
||||
model: model,
|
||||
hideCategory: false,
|
||||
|
|
Loading…
Reference in New Issue
Block a user