Migrate to AngularJS v1.8.2
This patch aligns current code with AngularJS v1.8.2 requirements. Change-Id: I6ec4eaac5096564393f1cd388e28c15a20bb4033
This commit is contained in:
parent
32398c815a
commit
598b3d5c7b
@ -77,10 +77,10 @@
|
||||
}
|
||||
|
||||
function afterCheck(result) {
|
||||
var outcome = $q.reject(); // Reject the promise by default
|
||||
var outcome = $q.reject().catch(angular.noop); // Reject the promise by default
|
||||
if (result.fail.length > 0) {
|
||||
toast.add('error', getMessage(notAllowedMessage, result.fail));
|
||||
outcome = $q.reject(result.fail);
|
||||
outcome = $q.reject(result.fail).catch(angular.noop);
|
||||
}
|
||||
if (result.pass.length > 0) {
|
||||
outcome = deleteModal.open(scope, result.pass.map(getEntity), context).then(createResult);
|
||||
|
@ -77,10 +77,10 @@
|
||||
}
|
||||
|
||||
function afterCheck(result) {
|
||||
var outcome = $q.reject(); // Reject the promise by default
|
||||
var outcome = $q.reject().catch(angular.noop); // Reject the promise by default
|
||||
if (result.fail.length > 0) {
|
||||
toast.add('error', getMessage(notAllowedMessage, result.fail));
|
||||
outcome = $q.reject(result.fail);
|
||||
outcome = $q.reject(result.fail).catch(angular.noop);
|
||||
}
|
||||
if (result.pass.length > 0) {
|
||||
outcome = deleteModal.open(scope, result.pass.map(getEntity), context).then(createResult);
|
||||
|
Loading…
Reference in New Issue
Block a user