-
Notifications
You must be signed in to change notification settings - Fork 29
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
Pop Up Modal #1197
Pop Up Modal #1197
Conversation
✅ Deploy Preview for labs-zola ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
…istrict Info improvement is missing from both.
app/controllers/application.js
Outdated
|
||
@action toggleModal() { | ||
this.openModal = !this.openModal; | ||
// Uncomment this when done so that the message only shows the first time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove these 3 commented lines now? I'd rather they not land in develop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed them, although I don't really understand why. They make it easy for any developer in the future to switch between showing the modal once, showing the modal until the user hits the checkbox, or always showing the modal. What's the drawback?
This PR adds a pop-up modal to the site to display on page load. It has:
window.localStorage.clear()
in the developer console and refresh to be able to see it againCompletes #1196