You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/edge/components/groups-datatable/groupsDatatableController.js

18 lines
451 B

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;
}
}