Skip to content

ViewComponent: convert _gl_toggle

Gabriel Mazetto requested to merge brodock/view-component-gl-toggle into master

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.

Edited by Gabriel Mazetto

Merge request reports