refactor: 💡 upgrade addons/core to Ember 3.24

This commit is contained in:
Randall Morey committed 2021-03-05 14:22:06 -05:00
1 parent 6541fbade8
commit 17d2df9f52
33 files changed
+185 -194

No files matched your search

+5 -5
View File
@@ -51,14 +51,14 @@ export function notifyError(notification, options = { catch: false }) {
const owner = getOwner(this);
const notifyService = owner.lookup('service:notify');
const intlService = owner.lookup('service:intl');
try {
return await method.apply(this, arguments);
} catch (error) {
const candidateKey = (typeof notification === 'function')
? notification.apply(this, [error])
: notification;
const candidateKey =
typeof notification === 'function'
? notification.apply(this, [error])
: notification;
const text = intlService.exists(candidateKey)
? intlService.t(candidateKey)