refactor: 💡 upgrade addons/core to Ember 3.24
This commit is contained in:
33 files changed
+185
-194
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user