mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-10 14:04:35 -04:00
FIX: delegation error when reloading user activity
This commit is contained in:
parent
4f60eb6c77
commit
d7f28baf77
2 changed files with 2 additions and 5 deletions
app/assets/javascripts/discourse/routes
|
@ -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…
Add table
Reference in a new issue