mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +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:
parent
adf33385ce
commit
43bbc14c58
8 changed files with 32 additions and 49 deletions
|
@ -22,7 +22,8 @@ angular.module('portainer.docker').controller('NetworkMacvlanFormController', [
|
|||
return !ctrl.data.SelectedNetworkConfig;
|
||||
};
|
||||
|
||||
function initComponent() {
|
||||
this.$onInit = $onInit;
|
||||
function $onInit() {
|
||||
var isAdmin = Authentication.isAdmin();
|
||||
ctrl.isAdmin = isAdmin;
|
||||
|
||||
|
@ -44,7 +45,5 @@ angular.module('portainer.docker').controller('NetworkMacvlanFormController', [
|
|||
Notifications.error('Failure', err, 'Unable to retrieve informations for macvlan');
|
||||
});
|
||||
}
|
||||
|
||||
initComponent();
|
||||
},
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue