Skip to content

Sidebar visible by default #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tnylea opened this issue Sep 11, 2018 · 4 comments
Closed

Sidebar visible by default #18

tnylea opened this issue Sep 11, 2018 · 4 comments
Labels
enhancement New feature or request

Comments

@tnylea
Copy link

tnylea commented Sep 11, 2018

Hey Guys,

Awesome Package. Using it in the release of my Wave project, It looks like the sidebar is hidden by default. I usually think it's a good idea to show the sidebar by default.

Anyway, just thought I'd post my simple solution in case anyone else wanted to use it.

Create a new JS file and add it to the list of custom js files in the config/larecipe.php configuration.
Inside that custom JS I've added the following.

if(localStorage.getItem('larecipeSidebar') == null){
	localStorage.setItem('larecipeSidebar', true);
}

Essentially, if the local storage larecipeSidebar item is not set, it will set it to true by default.

Hope this helps someone else out & thanks again guys for an awesome package 👍

@saleem-hadad saleem-hadad added the enhancement New feature or request label Sep 13, 2018
@saleem-hadad
Copy link
Owner

How cool to see @tnylea here 🙈 my pleasure 😍
Thank you for addressing this issue, I'll keep this issue open so others can benefit from the quick solution provided. However, I guess it's cool if we have this option in the config as well ✌️

I'm so excited to see Wave live tho ❤️

@mattias-persson
Copy link

Would love to see this configurable as well!

@saleem-hadad
Copy link
Owner

Thank you @tnylea again for your nice solution. 🎉
I've implemented this feature to be configurable 😍 @mattias-persson
check it out here

@MakamuEvans
Copy link

Does'nt seem to work in v2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants