diff --git a/app/components/endpoints/endpoints.html b/app/components/endpoints/endpoints.html index d9cb053ae..cbce6c15a 100644 --- a/app/components/endpoints/endpoints.html +++ b/app/components/endpoints/endpoints.html @@ -137,7 +137,9 @@ - +
+ + Name diff --git a/app/components/endpoints/endpointsController.js b/app/components/endpoints/endpointsController.js index 5fb787ccc..ba50144d4 100644 --- a/app/components/endpoints/endpointsController.js +++ b/app/components/endpoints/endpointsController.js @@ -28,6 +28,15 @@ function ($scope, $state, EndpointService, EndpointProvider, Messages, Paginatio Pagination.setPaginationCount('endpoints', $scope.state.pagination_count); }; + $scope.selectItems = function (allSelected) { + angular.forEach($scope.state.filteredEndpoints, function (endpoint) { + if (endpoint.Checked !== allSelected) { + endpoint.Checked = allSelected; + $scope.selectItem(endpoint); + } + }); + }; + $scope.selectItem = function (item) { if (item.Checked) { $scope.state.selectedItemCount++;