ViewComponent: convert _gl_toggle
What does this MR do and why?
This introduces ViewComponent into the codebase as a way to organize reusable frontend code in the backend.
As example usage, I'm converting _gl_toggle
to its own component.
What I did was basically follow https://viewcomponent.org/guide/getting-started.html and move a move/adapt the code from the previous partial to the component view
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Gabriel Mazetto