mirror of
https://github.com/portainer/portainer.git
synced 2025-08-05 05:45:22 +02:00
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:
parent
af6bea5acc
commit
42aa8ceb00
52 changed files with 99 additions and 115 deletions
|
@ -1,6 +1,6 @@
|
|||
import angular from 'angular';
|
||||
|
||||
class AssociatedEndpointsDatatableController {
|
||||
export class AssociatedEndpointsDatatableController {
|
||||
constructor($scope, $controller, DatatableService, PaginationService) {
|
||||
this.extendGenericController($controller, $scope);
|
||||
this.DatatableService = DatatableService;
|
||||
|
@ -98,6 +98,3 @@ class AssociatedEndpointsDatatableController {
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
angular.module('portainer.edge').controller('AssociatedEndpointsDatatableController', AssociatedEndpointsDatatableController);
|
||||
export default AssociatedEndpointsDatatableController;
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
import angular from 'angular';
|
||||
|
||||
import { AssociatedEndpointsDatatableController } from './associatedEndpointsDatatableController';
|
||||
|
||||
angular.module('portainer.edge').component('associatedEndpointsDatatable', {
|
||||
templateUrl: './associatedEndpointsDatatable.html',
|
||||
controller: 'AssociatedEndpointsDatatableController',
|
||||
controller: AssociatedEndpointsDatatableController,
|
||||
bindings: {
|
||||
titleText: '@',
|
||||
titleIcon: '@',
|
Loading…
Add table
Add a link
Reference in a new issue