gbif / hosted-portals

Support material for establishing the GBIF Hosted Portals
Apache License 2.0
9 stars 6 forks source link

Disable "set as filter" when clicking the text within cells in table view #274

Closed mpitblado closed 7 months ago

mpitblado commented 7 months ago

@MortenHofft is there a way that we can disable the "Set as filter" feature within the tables? In most UI (both on this site and in general), the text within a cell serves as the link to open the individual record, so users may be confused when the record doesn't open and the table shifts. On mobile, the hover text will never appear so new users will not know that they activated the functionality, and the text is harder to avoid in the cell even if the user tries not to click it on purpose

image

MortenHofft commented 7 months ago

It isn't possible to deactivate it no. I'll move to the general repo as a feature request

MortenHofft commented 7 months ago

Hi @mpitblado you can now disable the feature site wide by adding below yo your site config. It is sitewide and not per table.

disableInlineTableFilterButtons: true

I've also disabled it automatically on touch devices. I'll deploy to production on monday