mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 23:31:18 +08:00
FIX: visual regression for new features (#29359)
Bug introduced in this PR https://github.com/discourse/discourse/pull/29244 When the experiment toggle button was introduced, new features did not look right when the toggle button was not available. In addition, the plugin name can be an empty string. In that case, information about new features should be displayed.
This commit is contained in:

committed by
GitHub

parent
11b62847e7
commit
cd077ef93b
@ -165,7 +165,7 @@ module DiscourseUpdates
|
||||
Discourse.has_needed_version?(current_version, item["discourse_version"])
|
||||
|
||||
valid_plugin_name =
|
||||
item["plugin_name"].nil? || Discourse.plugins_by_name[item["plugin_name"]].present?
|
||||
item["plugin_name"].blank? || Discourse.plugins_by_name[item["plugin_name"]].present?
|
||||
|
||||
valid_version && valid_plugin_name
|
||||
rescue StandardError
|
||||
|
Reference in New Issue
Block a user