Deprecated error method
$http's deprecated custom callback method: .error() has been removed in AngularJS 1.6. Use the standard .catch() promise method instead. Change-Id: Ib95b6fd8ae053e606c78a71278ce9653004c2c5a
This commit is contained in:
parent
ff31baa91e
commit
e50209ae67
@ -41,7 +41,7 @@
|
|||||||
|
|
||||||
function getBackups() {
|
function getBackups() {
|
||||||
return apiService.get('/api/trove/backups/')
|
return apiService.get('/api/trove/backups/')
|
||||||
.error(function() {
|
.catch(function() {
|
||||||
toastService.add('error', gettext('Unable to retrieve the Backups.'));
|
toastService.add('error', gettext('Unable to retrieve the Backups.'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user