kitconcept / volto-light-theme

https://light-theme.kitconcept.io
12 stars 9 forks source link

Config option to hide the login button #395

Open jonaspiterek opened 5 months ago

jonaspiterek commented 5 months ago

@sneridagh What do you think of an config option to hide the login button in the anontools?

https://github.com/kitconcept/volto-light-theme/blob/7ecbf769fce68c05abd33581cc485c8f6e0ae1cb/packages/volto-light-theme/src/components/Anontools/Anontools.jsx#L24-L31

It is very common to not show this on a non-intranet site because the login is only for editors. So instead of customizing it, why not have a config option (e.g. config.settings.showLogin)?

sneridagh commented 5 months ago

In fact, login can also be a portal action. Now thst you mastered them ;)

jonaspiterek commented 5 months ago

Yes, but the link is hard-coded.

davisagli commented 5 months ago

@jonaspiterek I think @sneridagh is saying that the template can check @components.actions in the content data to see if the login action should be shown, rather than a setting from the Volto config.