schmitty890 / sports-tracker

MIT License
1 stars 0 forks source link

sidebar toggle #58

Open schmitty890 opened 4 years ago

schmitty890 commented 4 years ago

Everytime the user toggles to a new page, the sidebar defaults back to its open state.

Lets create a field in our user data model as something like sidebarOpen and save it as a boolean. This way, when the user loads a new page, we can pass that value through the handlebar template to determine if we should add the classes for the sidebar to be open or closed.