finished the work

This commit is contained in:
Niels Lyngsø
2019-04-03 13:07:00 +02:00
parent 9379efceae
commit 2529193ca9
2 changed files with 3 additions and 6 deletions

View File

@@ -417,7 +417,7 @@
return;
}
if (isSelectedAll()) {
if (isSelectedAll(items, selection)) {
// unselect all items
angular.forEach(items, function (item) {
item.selected = false;
@@ -440,7 +440,7 @@
obj.key = item.key;
}
item.selected = true;
vm.selection.push(user.id);
selection.push(obj);
});
}
@@ -575,6 +575,7 @@
deselectItem: deselectItem,
clearSelection: clearSelection,
selectAllItems: selectAllItems,
selectAllItemsToggle: selectAllItemsToggle,
isSelectedAll: isSelectedAll,
setSortingDirection: setSortingDirection,
setSorting: setSorting,

View File

@@ -4,10 +4,6 @@
<div class="umb-table-head">
<div class="umb-table-row">
<div class="umb-table-cell">
<input class="umb-table__input" type="checkbox"
ng-show="vm.allowSelectAll"
ng-click="vm.selectAll($event)"
ng-checked="vm.isSelectedAll()"/>
<a href="" style="text-decoration: none;" ng-show="vm.allowSelectAll" ng-click="vm.selectAll()">
<umb-checkmark checked="vm.isSelectedAll()" size="xs"></umb-checkmark>