-
Notifications
You must be signed in to change notification settings - Fork 13
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
Modify routes and add option to change config lang in preview mode #368
Conversation
Your demo site is ready! 🚀 Visit it here: https://ramp4-pcar4.github.io/storylines-editor/preview-lang-route |
318d580
to
8aa5f1f
Compare
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.
Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @yileifeng)
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.
Noticed that when switching between the languages in preview mode multiple times the local server ends up crashing. Not sure how much of an issue this will be in prod.
Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @yileifeng)
8aa5f1f
to
a5ed861
Compare
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.
Did a rework for the preview component to save both lang configs and only trigger a refresh of the Vue component upon language toggle rather than relying on a server fetch. This should solve the issue as the server will not get overloaded. Should be a much faster loadup time as well when switching languages.
Reviewable status: 2 of 4 files reviewed, all discussions resolved (waiting on @dnlnashed and @RyanCoulsonCA)
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.
Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @yileifeng)
Related Item(s)
Closes #311
Changes
Testing
Steps:
Change languages in preview mode by loading the preview route directly through URL as well as loading the preview route through the editor.
This change is