mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 14:29:40 +02:00
* 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
16 lines
433 B
JavaScript
16 lines
433 B
JavaScript
import angular from 'angular';
|
|
|
|
export class EdgeGroupsDatatableController {
|
|
constructor($scope, $controller) {
|
|
const allowSelection = this.allowSelection;
|
|
angular.extend(this, $controller('GenericDatatableController', { $scope: $scope }));
|
|
this.allowSelection = allowSelection.bind(this);
|
|
}
|
|
|
|
/**
|
|
* Override this method to allow/deny selection
|
|
*/
|
|
allowSelection(item) {
|
|
return !item.HasEdgeStack;
|
|
}
|
|
}
|