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() {
|
||||
return apiService.get('/api/trove/backups/')
|
||||
.error(function() {
|
||||
.catch(function() {
|
||||
toastService.add('error', gettext('Unable to retrieve the Backups.'));
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user