Univention Bugzilla – Bug 34965
Handling of multi-actions on selections
Last modified: 2014-07-14 10:50:28 CEST
For the adaptation in Bug #34608 to work, the UMC grid needs to be adjusted.
+++ This bug was initially created as a clone of Bug #34608 +++
A customer reported that if a teacher selects all computers in a, mass actions like locking the display are not available if the room contains computers that aren't reachable. This forces the teacher to manually skim through the list and unselect every single computer that is not reachable.
This renders mass actions unusable for quick changes.
The desired behavior is that unreachable computers are ignored and the select action is applied to all other computers.
Added the flag "enablingMode" for the definition of multi actions. It can have the following modes:
"all" → current behaviour, i.e., all items need to be executable (w.r.t. the action) in order for the button to be enabled.
"some" → at least one item in the selection needs to be executable; only executable actions of the selection are passed over to the callback function.
* Bug #34965: allow execution of a multi action even though selected items
cannot be executed
OK: enablingMode defaults to 'all'
OK: enablingMode == 'all' → old behavior
OK: enablingMode == 'some' → only executable rows are executed, action is available if selection contains also non-executable rows
tested with appcenter/PackagesPage.js
Maybe the wording enablingMode is not very intuitive, but I currently don't know something better.
(In reply to Florian Best from comment #2)
> Maybe the wording enablingMode is not very intuitive, but I currently don't
> know something better.
Please make a suggestion if you have a better one ;) . I was not able to find one!