mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 21:25:24 +08:00
UX: Enable new notifications menu by default (#21060)
https://meta.discourse.org/t/260358
This commit is contained in:
@ -1,15 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class EnableNewNotificationsMenuValidator
|
||||
def initialize(opts = {})
|
||||
end
|
||||
|
||||
def valid_value?(value)
|
||||
return true if value == "f"
|
||||
SiteSetting.navigation_menu == "legacy"
|
||||
end
|
||||
|
||||
def error_message
|
||||
I18n.t("site_settings.errors.enable_new_notifications_menu_not_legacy_navigation_menu")
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user