mirror of
https://github.com/discourse/discourse.git
synced 2026-08-26 13:17:20 -05:00
FIX: Couldn't navigate to Categories list via link
This commit is contained in:
@@ -7,18 +7,17 @@
|
||||
@module Discourse
|
||||
**/
|
||||
Discourse.AdminUserRoute = Discourse.Route.extend({
|
||||
|
||||
serialize: function(params) {
|
||||
return { username: Em.get(params, 'username').toLowerCase() };
|
||||
},
|
||||
|
||||
renderTemplate: function() {
|
||||
this.render('admin/templates/user', {into: 'admin/templates/admin'});
|
||||
model: function(params) {
|
||||
return Discourse.AdminUser.find(Em.get(params, 'username').toLowerCase());
|
||||
},
|
||||
|
||||
setupController: function(controller, model) {
|
||||
Discourse.AdminUser.find(Em.get(model, 'username').toLowerCase()).then(function (u) {
|
||||
controller.set('content', u);
|
||||
});
|
||||
renderTemplate: function() {
|
||||
this.render('admin/templates/user', {into: 'admin/templates/admin'});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user