mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: delegation error when reloading user activity
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user