mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
Use computed macros
This commit is contained in:
parent
ab94dabbd2
commit
bb89ad90f2
11 changed files with 57 additions and 142 deletions
|
@ -17,8 +17,9 @@ export default Ember.Controller.extend(NotifierMixin, {
|
|||
|
||||
actions: {
|
||||
save() {
|
||||
this.get('orgService').save(this.model);
|
||||
this.showNotification('Saved');
|
||||
return this.get('orgService').save(this.model).then(() => {
|
||||
this.showNotification('Saved');
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue