fix blank name field

This commit is contained in:
Neil Lalonde 2017-05-04 13:45:08 -04:00
parent 55ca5df96b
commit c576e49230
2 changed files with 4 additions and 11 deletions

View File

@ -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')
});
}
});

View File

@ -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')
});
}
});