e.errors not e.error (#4990)
This commit is contained in:
parent
0e659ca6be
commit
07cdda2cd9
|
@ -16,7 +16,7 @@ export default Ember.Component.extend({
|
|||
})
|
||||
.catch(e => {
|
||||
this.get('flashMessages').success(
|
||||
`There was a problem enabling the entity: ${model.id} - ${e.error.join(' ') || e.message}`
|
||||
`There was a problem enabling the entity: ${model.id} - ${e.errors.join(' ') || e.message}`
|
||||
);
|
||||
});
|
||||
},
|
||||
|
|
|
@ -18,7 +18,7 @@ export default Ember.Controller.extend(ListController, {
|
|||
})
|
||||
.catch(e => {
|
||||
this.get('flashMessages').success(
|
||||
`There was a problem deleting ${type}: ${id} - ${e.error.join(' ') || e.message}`
|
||||
`There was a problem deleting ${type}: ${id} - ${e.errors.join(' ') || e.message}`
|
||||
);
|
||||
});
|
||||
},
|
||||
|
@ -36,7 +36,7 @@ export default Ember.Controller.extend(ListController, {
|
|||
})
|
||||
.catch(e => {
|
||||
this.get('flashMessages').success(
|
||||
`There was a problem ${action[1]} ${type}: ${id} - ${e.error.join(' ') || e.message}`
|
||||
`There was a problem ${action[1]} ${type}: ${id} - ${e.errors.join(' ') || e.message}`
|
||||
);
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue