1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 05:45:22 +02:00

feat(app/package): upgrade angularjs to 1.8 (#4073)

* chore(yarn): upgrade angularjs

* refactor(app): use $onInit instead of initComponent

* feat(app/package): remove angular-cookies dependency

Co-authored-by: Anthony Lapenna <lapenna.anthony@gmail.com>
This commit is contained in:
Chaim Lev-Ari 2020-07-25 02:23:44 +03:00 committed by GitHub
parent adf33385ce
commit 43bbc14c58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 32 additions and 49 deletions

View file

@ -4,7 +4,8 @@ angular.module('portainer.integrations.storidge').controller('StoridgeProfileSel
function (StoridgeProfileService, Notifications) {
var ctrl = this;
function initComponent() {
this.$onInit = $onInit;
function $onInit() {
StoridgeProfileService.profiles()
.then(function success(data) {
ctrl.profiles = data;
@ -13,7 +14,5 @@ angular.module('portainer.integrations.storidge').controller('StoridgeProfileSel
Notifications.error('Failure', err, 'Unable to retrieve Storidge profiles');
});
}
initComponent();
},
]);