mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 06:13:45 +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. |
||
---|---|---|
.. | ||
addon | ||
app | ||
config | ||
tests | ||
.npmrc | ||
ember-cli-build.js | ||
index.js | ||
jsconfig.json | ||
package.json |