-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Prevent cached feedback icons being shown if the feedback plugin is disabled #21559
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
Conversation
Co-authored-by: Michal Kleiner <michal@innocraft.com>
@bx80 to decouple CoreHome from the Feedback plugin you could try using Lines 87 to 92 in fe3a9f1
|
# Conflicts: # plugins/CoreHome/vue/dist/CoreHome.umd.min.js
@sgiehl That worked well and fixes the javascript error when the feedback plugin is disabled. 👍 I've also adjusted the check to see if the feedback plugin is loaded to check directly for the feedback translations rather than the existence of |
Description:
Fixes #21365
This PR adds a check to make sure the Feedback plugin assembly is loaded before showing the rate feature icons, this prevents an issue where the feedback plugin is disabled but the cached javascript still shows the rate feature icons which will then be missing translation strings when clicked.
There is a related issue not fixed by this PR where theFixed by @sgiehl's suggestion belowEnrichedHeadline
component inCoreHome
depends on the feedback plugin and will always try to load it dynamically when widgets are active, if the feedback plugin is disabled then a browser console errorUncaught (in promise) PluginOnDemandLoadError: Loading plugin Feedback on demand failed.
however this does not affect the visible user experience and may require larger changes to fix.Review