Migrate to AngularJS v1.8.2

This patch aligns current code with AngularJS v1.8.2 requirements.

Change-Id: Ibabbaa0492b1734230d3748993fcd4775d8669fb
This commit is contained in:
manchandavishal 2022-06-28 22:22:52 +05:30
parent 5a36a31de6
commit 02edabd873
1 changed files with 5 additions and 5 deletions

View File

@ -70,7 +70,7 @@
function getPackages(params) {
var config = params ? { "params" : params} : {};
return apiService.get('/api/app-catalog/packages/', config)
.error(function () {
.catch(function onError() {
toastService.add('error', gettext('Unable to retrieve the packages.'));
});
}
@ -100,7 +100,7 @@
var url = '/api/app-catalog/environments/' + target.environment +
'/components/' + target.component + '/metadata/';
return apiService.get(url, params)
.error(function () {
.catch(function onError() {
toastService.add('error', gettext('Unable to retrieve component metadata.'));
});
}
@ -135,7 +135,7 @@
'/components/' + target.component + '/metadata/';
return apiService.post(
url, { updated: updated, removed: removed}, params)
.error(function () {
.catch(function onError() {
toastService.add('error', gettext('Unable to edit component metadata.'));
});
}
@ -162,7 +162,7 @@
var url = '/api/app-catalog/environments/' + target.environment +
'/metadata/';
return apiService.get(url, params)
.error(function () {
.catch(function onError() {
toastService.add('error', gettext('Unable to retrieve environment metadata.'));
});
}
@ -194,7 +194,7 @@
'/metadata/';
return apiService.post(
url, { updated: updated, removed: removed}, params)
.error(function () {
.catch(function onError() {
toastService.add('error', gettext('Unable to edit environment metadata.'));
});
}