FEATURE: Show user fields when the user is signing up

This commit is contained in:
Robin Ward
2014-09-26 14:48:34 -04:00
parent 872d8fce58
commit edb34c178a
42 changed files with 476 additions and 141 deletions

View File

@ -13,10 +13,12 @@ export default Ember.ObjectController.extend(BufferedContent, {
save: function() {
var self = this;
this.commitBuffer();
this.get('model').save().then(function(res) {
var attrs = this.get('buffered').getProperties('name', 'field_type', 'editable');
this.get('model').save(attrs).then(function(res) {
self.set('model.id', res.user_field.id);
self.set('editing', false);
self.commitBuffer();
}).catch(function() {
bootbox.alert(I18n.t('generic_error'));
});