classifai
classifai copied to clipboard
JS/CSS is not loading in admin until "Language Processing" service credentials are saved.
Describe the bug
Currently, the plugin loads admin CSS and JS only after the service gets registered successfully, which makes the link Use a username/password instead?
not work and breaks the layout of the "Preview Language Processing".
Expected behavior: UI should work properly regardless of whether service credentials are saved or not.
Also, we may show "Preview Language Processing" only after credentials are saved and authenticated, as it will start working after the service is authenticated.
Steps to Reproduce
- Go to
ClassifiAI
>Language Processing
- Click on the "Use a username/password instead?" link and notice that it's not working.
- Scroll down to below in code. Notice that "Preview Language Processing" is not properly showing.
- Save credentials.
- Verify steps 2 & 3 started working properly.
Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress information
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct