refactor(edge-compute): enforce es6 good practices (#3961)

* refactor(edge-groups): use es6 imports

* refactor(edge-jobs): es6 imports

* refactor(edge-stacks): use es6 imports

* refactor(edge-compute): use es6 imports in components

* refactor(edge-compute): use named imports
This commit is contained in:
Chaim Lev-Ari
2020-07-06 10:35:13 +03:00
committed by GitHub
parent af6bea5acc
commit 42aa8ceb00
52 changed files with 99 additions and 115 deletions
@@ -1,12 +1,10 @@
import angular from 'angular';
const statusMap = {
1: 'ok',
2: 'error',
3: 'acknowledged',
};
class EdgeStackStatusController {
export class EdgeStackStatusController {
$onChanges({ stackStatus }) {
if (!stackStatus || !stackStatus.currentValue) {
return;
@@ -20,6 +18,3 @@ class EdgeStackStatusController {
this.status = aggregateStatus;
}
}
angular.module('portainer.edge').controller('EdgeStackStatusController', EdgeStackStatusController);
export default EdgeStackStatusController;