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:
chao liu 2018-01-29 01:27:05 -08:00
parent ff31baa91e
commit e50209ae67

View File

@ -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.'));
});
}