diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-02-14 20:59:26 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-02-14 20:59:26 +0100 |
commit | 3b81baaaaf51ff1c70fb1f865eef07fdb33a5950 (patch) | |
tree | fd3c5f038bdc3dcf08c3747220027160084329de /app/assets/javascripts/components/features/account_timeline/containers | |
parent | 40a40537326aa168d20324bd8bd0e979d5083570 (diff) |
Adding POST /api/v1/reports API, and a UI for submitting reports
Diffstat (limited to 'app/assets/javascripts/components/features/account_timeline/containers')
-rw-r--r-- | app/assets/javascripts/components/features/account_timeline/containers/header_container.jsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/features/account_timeline/containers/header_container.jsx b/app/assets/javascripts/components/features/account_timeline/containers/header_container.jsx index dca826596..e4ce905fe 100644 --- a/app/assets/javascripts/components/features/account_timeline/containers/header_container.jsx +++ b/app/assets/javascripts/components/features/account_timeline/containers/header_container.jsx @@ -8,6 +8,7 @@ import { unblockAccount } from '../../../actions/accounts'; import { mentionCompose } from '../../../actions/compose'; +import { initReport } from '../../../actions/reports'; const makeMapStateToProps = () => { const getAccount = makeGetAccount(); @@ -39,6 +40,10 @@ const mapDispatchToProps = dispatch => ({ onMention (account, router) { dispatch(mentionCompose(account, router)); + }, + + onReport (account) { + dispatch(initReport(account)); } }); |