mirror of https://github.com/portainer/portainer
18 lines
451 B
JavaScript
18 lines
451 B
JavaScript
import angular from 'angular';
|
|
|
|
export class EdgeGroupsDatatableController {
|
|
/* @ngInject */
|
|
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;
|
|
}
|
|
}
|