1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 07:39:43 +02:00

bug fixes

This commit is contained in:
Harvey Kandola 2017-04-12 18:00:52 +01:00
parent 658f0105d1
commit ef9097b4f4
7 changed files with 15 additions and 5 deletions

View file

@ -37,7 +37,7 @@ export default Ember.Controller.extend(NotifierMixin, {
this.get('userService').remove(user.get('id')).then(function () {
self.showNotification('Deleted');
self.get('userService').getAll().then(function (users) {
self.get('userService').getComplete().then(function (users) {
self.set('model', users);
});
});
@ -48,7 +48,7 @@ export default Ember.Controller.extend(NotifierMixin, {
this.get('userService').save(user).then(function () {
self.showNotification('Saved');
self.get('userService').getAll().then(function (users) {
self.get('userService').getComplete().then(function (users) {
self.set('model', users);
});
});