mirror of
https://github.com/discourse/discourse.git
synced 2025-04-03 05:39:41 +08:00
FIX: Don't transition to when viewing a user. Just render it.
This commit is contained in:
parent
3761ccb018
commit
a97c093434
@ -27,8 +27,22 @@ Object.keys(Discourse.UserAction.TYPES).forEach(function (userAction) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
Discourse.UserIndexRoute = Discourse.Route.extend({
|
Discourse.UserIndexRoute = Discourse.Route.extend({
|
||||||
redirect: function() {
|
renderTemplate: function() {
|
||||||
this.transitionTo('userActivity.index');
|
this.render('user_activity', {into: 'user', outlet: 'userOutlet' });
|
||||||
|
},
|
||||||
|
|
||||||
|
model: function() {
|
||||||
|
var user = this.modelFor('user');
|
||||||
|
return user.findStream();
|
||||||
|
},
|
||||||
|
|
||||||
|
setupController: function(controller, stream) {
|
||||||
|
var userActivity = this.controllerFor('userActivity');
|
||||||
|
|
||||||
|
userActivity.setProperties({
|
||||||
|
stream: stream,
|
||||||
|
model: this.modelFor('user')
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user