mirror of
https://github.com/discourse/discourse.git
synced 2025-04-29 10:44:33 +08:00
FIX: Set saving to false about model has been saved.
This commit is contained in:
parent
25c7450ea7
commit
c29b7ce498
@ -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));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user