FIX: Set saving to false about model has been saved.

This commit is contained in:
Guo Xiang Tan 2015-09-17 10:58:31 +08:00
parent 25c7450ea7
commit c29b7ce498
1 changed files with 1 additions and 1 deletions

View File

@ -68,8 +68,8 @@ export default Ember.Controller.extend(ModalFunctionality, {
this.set('saving', true); this.set('saving', true);
model.set('parentCategory', parentCategory); model.set('parentCategory', parentCategory);
self.set('saving', false);
this.get('model').save().then(function(result) { this.get('model').save().then(function(result) {
self.set('saving', false);
self.send('closeModal'); self.send('closeModal');
model.setProperties({slug: result.category.slug, id: result.category.id }); model.setProperties({slug: result.category.slug, id: result.category.id });
DiscourseURL.redirectTo("/c/" + Discourse.Category.slugFor(model)); DiscourseURL.redirectTo("/c/" + Discourse.Category.slugFor(model));