mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 13:03:39 +08:00
ba139b8c23
* REFACTOR: Improve reusability by Decoupling flag modal from flag target. We want chat message's flags to have the same features as topic and posts' flags, but we prefer not having to duplicate core's logic. This PR moves target specific bits to different classes, allowing plugins to flag custom things by providing their own. * A couple of fixes for the flag modal: - Make sure buttons are disabled until a flag type is selected. - Don't throw an error when checking if the user can undo an action on a deleted topic. - Disable flagging on deleted topics. |
||
---|---|---|
.. | ||
bookmark_guardian.rb | ||
category_guardian.rb | ||
ensure_magic.rb | ||
group_guardian.rb | ||
post_guardian.rb | ||
post_revision_guardian.rb | ||
tag_guardian.rb | ||
topic_guardian.rb | ||
user_guardian.rb |