From e50209ae67f304bc641a25495701efc46d501e13 Mon Sep 17 00:00:00 2001 From: chao liu Date: Mon, 29 Jan 2018 01:27:05 -0800 Subject: [PATCH] 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 --- .../static/app/core/openstack-service-api/trove.service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trove_dashboard/static/app/core/openstack-service-api/trove.service.js b/trove_dashboard/static/app/core/openstack-service-api/trove.service.js index 7206a97..8d2cab1 100644 --- a/trove_dashboard/static/app/core/openstack-service-api/trove.service.js +++ b/trove_dashboard/static/app/core/openstack-service-api/trove.service.js @@ -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.')); }); }