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:
parent
4f830d7561
commit
d3a5156e66
|
@ -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
|
||||
|
||||
|
|
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue