mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 21:19:41 -06:00
fix blank name field
This commit is contained in:
parent
55ca5df96b
commit
c576e49230
@ -3,6 +3,9 @@ import RestrictedUserRoute from "discourse/routes/restricted-user";
|
||||
export default RestrictedUserRoute.extend({
|
||||
setupController(controller, user) {
|
||||
controller.reset();
|
||||
controller.setProperties({ model: user });
|
||||
controller.setProperties({
|
||||
model: user,
|
||||
newNameInput: user.get('name')
|
||||
});
|
||||
}
|
||||
});
|
||||
|
@ -1,10 +0,0 @@
|
||||
import RestrictedUserRoute from "discourse/routes/restricted-user";
|
||||
|
||||
export default RestrictedUserRoute.extend({
|
||||
setupController(controller, user) {
|
||||
controller.setProperties({
|
||||
model: user,
|
||||
newNameInput: user.get('name')
|
||||
});
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue
Block a user