files_accesscontrol icon indicating copy to clipboard operation
files_accesscontrol copied to clipboard

Feature request: Hide blocked items instead of just disabling them

Open ManfredWisniewski opened this issue 9 months ago • 6 comments

This is not a bug but a feature request. If anyone is willing to point me in the right direction I would try and implement this myself.

Steps to reproduce

  1. block any item for a user
  2. user can still see the item on the backend but can not click on it anymore

wanted behaviour

Hide blocked items altogether

I have looked at the code generated by nextcloud very thoroughly and I can't find any way to distinguish blocked items in the html from normal ones. If that were possible I could just hide them via css but in the example I check everything was exactly the same. I was trying to hide this element: <tbody data-cy-files-list-tbody class="files-list__tbody files-list__tbody--list"> Also none of the child elements had anything that would identify the element as blocked. The new :has selector could be used to hide the element but as stated I could not find any way to distinguish the state.

Adding a distinguishing class would be enough to add the option to hide blocked items.

ManfredWisniewski avatar May 28 '24 13:05 ManfredWisniewski