feat(ux): select all button will unselect all if click again

This commit is contained in:
Hivert Quentin committed 2023-11-03 15:13:48 +01:00
1 parent 0df0e34073
commit 6e60b10755
3 files changed
+9 -3

No files matched your search

@@ -45,6 +45,7 @@
vm.reload = reload;
vm.cancelSearch = cancelSearch;
vm.mode = { search: false, multiple: 0 };
vm.allSelected = false;
this.$onInit = function() {
@@ -120,8 +121,9 @@
function selectAll() {
_.forEach(Component['$' + vm.componentType], function(component) {
component.selected = true;
component.selected = !vm.allSelected;
});
vm.allSelected = !vm.allSelected;
vm.mode.multiple = Component['$' + vm.componentType].length;
}