inveniosoftware / invenio-communities

Invenio communities module.
https://invenio-communities.readthedocs.io
MIT License
5 stars 73 forks source link

subcommunities: "Yes" radio button should be disabled for users without communities #1165

Closed slint closed 3 months ago

slint commented 3 months ago

The "Yes" option should either be disabled or not appear at all.

Image

(edited by @alejandromumo 🥷)

Currently the user communities are computed when the component is rendered, therefore the switch button can only be disabled after clicking "Yes". Perhaps we can move the communities fetching to the backend (e.g. before rendering the template and injecting it there).