From 0634e8dee5026b06c95b7efe161a0930c7431d9b Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 9 Oct 2016 22:19:15 +0200 Subject: Improved how in-UI profiles look --- app/assets/javascripts/components/features/status/index.jsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'app/assets/javascripts/components/features/status/index.jsx') diff --git a/app/assets/javascripts/components/features/status/index.jsx b/app/assets/javascripts/components/features/status/index.jsx index 1d40f127b..cc7a2bfeb 100644 --- a/app/assets/javascripts/components/features/status/index.jsx +++ b/app/assets/javascripts/components/features/status/index.jsx @@ -10,6 +10,7 @@ import ActionBar from './components/action_bar'; import Column from '../ui/components/column'; import { favourite, reblog } from '../../actions/interactions'; import { replyCompose } from '../../actions/compose'; +import { deleteStatus } from '../../actions/statuses'; import { getStatus, getStatusAncestors, @@ -57,8 +58,12 @@ const Status = React.createClass({ this.props.dispatch(reblog(status)); }, + handleDeleteClick (status) { + this.props.dispatch(deleteStatus(status.get('id'))); + }, + renderChildren (list) { - return list.map(s => ); + return list.map(s => ); }, render () { @@ -80,7 +85,7 @@ const Status = React.createClass({
{this.renderChildren(ancestors)}
- +
{this.renderChildren(descendants)}
-- cgit