mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Update Users API to handle role objects or ids
Closes #3357 - API method User#edit now handles User objects that have either an array of Role ids or objects. - Fixed error handler notification on upload modal controller.
This commit is contained in:
parent
1b5a682e13
commit
6c5d1a6267
1 changed files with 3 additions and 1 deletions
|
@ -8,7 +8,9 @@ var UploadController = Ember.Controller.extend({
|
|||
this.get('model').save().then(function (model) {
|
||||
self.notifications.showSuccess('Saved');
|
||||
return model;
|
||||
}).catch(this.notifications.showErrors);
|
||||
}).catch(function (err) {
|
||||
self.notifications.showErrors(err);
|
||||
});
|
||||
},
|
||||
|
||||
confirmReject: function () {
|
||||
|
|
Loading…
Add table
Reference in a new issue