mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
FEATURE: Add admin dashboard warning for legacy
navigation menu (#22655)
Why this change? The `legacy` navigation menu option for the `navigation_menu` site setting will be removed shortly after the release of Discourse 3.1 in the first beta release of Discourse 3.2. Therefore, we're adding an admin dashboard warning to give sites on the `legacy` navigation menu a heads up.
This commit is contained in:

committed by
GitHub

parent
b583872eed
commit
3da6759860
@ -45,6 +45,18 @@ RSpec.describe AdminDashboardData do
|
||||
expect(problems.map(&:to_s)).to include("a problem was found")
|
||||
end
|
||||
end
|
||||
|
||||
describe "when `navigation_menu` site setting is `legacy`" do
|
||||
it "should include the right problem message" do
|
||||
SiteSetting.set(:navigation_menu, "legacy")
|
||||
|
||||
problem = AdminDashboardData.fetch_problems.last
|
||||
|
||||
expect(problem.message).to include(
|
||||
I18n.t("dashboard.legacy_navigation_menu_deprecated", base_path: Discourse.base_path),
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe "adding scheduled checks" do
|
||||
|
Reference in New Issue
Block a user