mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Rename Reset Read bulk action to Defer (#15972)
It is enabled only if defer is enabled in user options too and if the button shows up in the topic's footer.
This commit is contained in:
@@ -12,7 +12,7 @@ class TopicsBulkAction
|
||||
|
||||
def self.operations
|
||||
@operations ||= %w(change_category close archive change_notification_level
|
||||
reset_read dismiss_posts delete unlist archive_messages
|
||||
destroy_post_timing dismiss_posts delete unlist archive_messages
|
||||
move_messages_to_inbox change_tags append_tags remove_tags
|
||||
relist dismiss_topics)
|
||||
end
|
||||
@@ -98,8 +98,11 @@ class TopicsBulkAction
|
||||
@changed_ids = rows.map { |row| row[:topic_id] }
|
||||
end
|
||||
|
||||
def reset_read
|
||||
PostTiming.destroy_for(@user.id, @topic_ids)
|
||||
def destroy_post_timing
|
||||
topics.each do |t|
|
||||
PostTiming.destroy_last_for(@user, topic: t)
|
||||
@changed_ids << t.id
|
||||
end
|
||||
end
|
||||
|
||||
def change_category
|
||||
|
||||
Reference in New Issue
Block a user