open-nomad/ui/app/mixins/with-model-error-handling.js
2018-01-17 09:02:04 -08:00

9 lines
211 B
JavaScript

import Mixin from '@ember/object/mixin';
import notifyError from 'nomad-ui/utils/notify-error';
export default Mixin.create({
model() {
return this._super(...arguments).catch(notifyError(this));
},
});