mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 00:09:40 +02:00
feat(ui): remove the ability to select all entities from list views
This commit is contained in:
parent
21344280a9
commit
54ab81a7de
6 changed files with 3 additions and 40 deletions
|
@ -1,9 +1,7 @@
|
|||
angular.module('networks', [])
|
||||
.controller('NetworksController', ['$scope', 'Network', 'Messages', 'errorMsgFilter',
|
||||
function ($scope, Network, Messages, errorMsgFilter) {
|
||||
|
||||
$scope.state = {};
|
||||
$scope.state.toggle = false;
|
||||
$scope.state.selectedItemCount = 0;
|
||||
$scope.sortType = 'Name';
|
||||
$scope.sortReverse = true;
|
||||
|
@ -13,17 +11,6 @@ function ($scope, Network, Messages, errorMsgFilter) {
|
|||
$scope.sortType = sortType;
|
||||
};
|
||||
|
||||
$scope.toggleSelectAll = function () {
|
||||
angular.forEach($scope.state.filteredNetworks, function (i) {
|
||||
i.Checked = $scope.state.toggle;
|
||||
});
|
||||
if ($scope.state.toggle) {
|
||||
$scope.state.selectedItemCount = $scope.state.filteredNetworks.length;
|
||||
} else {
|
||||
$scope.state.selectedItemCount = 0;
|
||||
}
|
||||
};
|
||||
|
||||
$scope.selectItem = function (item) {
|
||||
if (item.Checked) {
|
||||
$scope.state.selectedItemCount++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue