Closed hurradieweltgehtunter closed 1 year ago
In the files
app the context menu differs depending on the file selection being a single file or multiple files. I'd apply the same pattern here.
Regarding implementation this means that the action
composables in the admin-settings
app need to take the number of items into account in their respective isEnabled
method.
For examples the useUserActionsEdit
composable has return resources.length > 0
as body of the isEnabled
method. It should clearly be return resources.length === 1
. ;-)
Steps to reproduce
Expected behaviour
Not sure what I was expecting. Edit multiple users at once seems unnecessary, also opening details for multiple users at once. Only "Delete" makes sense, and this is the only action item which works.
IMO actions items should be shown disabled or hidden, if they are not suitable in the current context.
Actual behaviour
Click on "Edit" -> nothing happens Click on "Details" -> Nothing happens Click on "Delete" -> Deletion prompt opens -> ok!
Environment general
https://ocis.ocis-wopi.latest.owncloud.works/
ownCloud Infinite Scale Community Version: 2.0.0+2bf458385 WebClient Version: 7.0.0-rc.16