-
Notifications
You must be signed in to change notification settings - Fork 94
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
Popups in Dashboard seem to be broken #292
Comments
Yes you're right, it sometimes happen. |
I tried hunting for the problem but wanted to ask where I can find the function definition of the function |
If no one is working on this issue , then i would like to work on this issue |
To reproduce the issue clear local storage , disable cache and slow down the network speed and reload the page prev-next-error.mp4another way to reproduce , disable cache and slow down the network speed and click on the help button before page completely loads help-error.mov |
As what i understand from the code , for translating the language the flow is
To load and display data, 'loadLocale' function is called for both the time .
from above points we see that for translating language , the value of 'gReadyState' changes from "interactive" to "completed" twice . first one for while loading default language and second one for loading user selected language for starting tutorial following code is used
In code we see that it waits for 'gReadyState' to become "complete" then it initialiize and start the tutorial Start tutorial function start the tutorial when the 'gReadyState' values becomes "completed" for the first time . and therefore the tour look like this |
we see here that the value of button is {{ TutoPrev }} because for translating second time with user selected language , the 'loadLocale' clear previous data and due to use of global variable the stored value inside that variable is cleared and 'document.webL10n.get("TutoPrev")' return {{ TutoPrev }} showing a warning that the value not availabe in global variable . if we uncomment the 'clear' function then the output will be like this In picture we see tutorial is in english and the background is in hindi . |
To fix this issue i have only called 'loadLocale' function once with the user selected language .
|
to fix the issue i have also made some changes "dashboard\public\js\l10n.js", as it is a library and changing it may cause some other problems . |
added some condition so that the chances of occuring this issue again is less
The popups in the Dashboard looks like they are not able to retrieve content from the locales.ini file.
One thing to note here is that I was able to fix it via refreshing it 3-4 times but it again broke while I refreshed it for the 5th time.
Steps to reproduce -
Statistics View
and try refreshing 3-4 times while the popup is open.I'd love to work on this but I wanted to make sure if that everyone is getting this problem.
The text was updated successfully, but these errors were encountered: