discourse/lib/notification_levels.rb
Osama Sayegh 5176c689e9
UX: Change wording for 'regular' categories to 'normal' (#17134)
At some point in the past we decided to rename the 'regular' notification state of topics/categories to 'normal'. However, some UI copy was missed when the initial renaming was done so this commit changes the spots that were missed to the new name.
2022-06-20 06:49:33 +03:00

20 lines
562 B
Ruby

# frozen_string_literal: true
module NotificationLevels
def self.all
@all_levels ||= Enum.new(muted: 0,
regular: 1,
normal: 1, # alias for regular
tracking: 2,
watching: 3,
watching_first_post: 4)
end
def self.topic_levels
@topic_levels ||= Enum.new(muted: 0,
regular: 1,
tracking: 2,
watching: 3)
end
end