From 0dd71af5fab7d2bef59a6e9d467b2742476aee00 Mon Sep 17 00:00:00 2001 From: Kaylee Date: Thu, 27 Apr 2017 00:53:55 +0100 Subject: [PATCH] Copy over "Boost" hover text fix to detailed view. (#2508) from #1754, should close out #1394 --- .../components/features/status/components/action_bar.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/components/features/status/components/action_bar.jsx b/app/assets/javascripts/components/features/status/components/action_bar.jsx index 130c3b92d6..bbdbf56e38 100644 --- a/app/assets/javascripts/components/features/status/components/action_bar.jsx +++ b/app/assets/javascripts/components/features/status/components/action_bar.jsx @@ -9,6 +9,7 @@ const messages = defineMessages({ mention: { id: 'status.mention', defaultMessage: 'Mention @{name}' }, reply: { id: 'status.reply', defaultMessage: 'Reply' }, reblog: { id: 'status.reblog', defaultMessage: 'Reblog' }, + cannot_reblog: { id: 'status.cannot_reblog', defaultMessage: 'This post cannot be reblogged' }, favourite: { id: 'status.favourite', defaultMessage: 'Favourite' }, report: { id: 'status.report', defaultMessage: 'Report @{name}' } }); @@ -67,10 +68,12 @@ class ActionBar extends React.PureComponent { if (status.get('visibility') === 'direct') reblogIcon = 'envelope'; else if (status.get('visibility') === 'private') reblogIcon = 'lock'; + let reblog_disabled = (status.get('visibility') === 'direct' || status.get('visibility') === 'private'); + return (
-
+