DEV: Move 'ignore and delete' action under 'ignore' menu for chat flags (#23304)

This moves the "delete message" action (if it is available) of a flagged chat message under the "ignore" menu. This puts it on par with the menu for flagged posts.
This commit is contained in:
Ted Johansson 2023-08-30 10:51:32 +08:00 committed by GitHub
parent 4f830d7561
commit d3a5156e66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -73,10 +73,12 @@ module Chat
)
end
build_action(actions, :ignore, icon: "external-link-alt")
ignore_bundle = actions.add_bundle("#{id}-ignore", label: "reviewables.actions.ignore.title")
build_action(actions, :ignore, icon: "external-link-alt", bundle: ignore_bundle)
unless chat_message.deleted_at?
build_action(actions, :delete_and_agree, icon: "far-trash-alt")
build_action(actions, :delete_and_agree, icon: "far-trash-alt", bundle: ignore_bundle)
end
end

View File

@ -114,14 +114,16 @@ en:
title: "Delete Message"
description: "Delete the message so that users cannot see it."
delete_and_agree:
title: "Delete Message"
title: "Ignore Flag and Delete Message"
description: "Ignore the flag by removing it from the queue and delete the message."
disagree_and_restore:
title: "Disagree and Restore Message"
description: "Restore the message so that all users can see it."
disagree:
title: "Disagree"
ignore:
title: "Ignore"
title: "Do Nothing"
description: "Ignore the flag by removing it from the queue without taking any action."
direct_messages:
transcript_title: "Transcript of previous messages in %{channel_name}"
transcript_body: "To give you more context, we included a transcript of the previous messages in this conversation (up to ten):\n\n%{transcript}"