From 9f25ab9792532fff9a0b067a24cfd0c20b99644b Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Fri, 3 May 2019 20:25:57 +0200 Subject: [PATCH] Fix polls icon not showing in CW button in detailed statuses --- .../glitch/features/status/components/detailed_status.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/features/status/components/detailed_status.js b/app/javascript/flavours/glitch/features/status/components/detailed_status.js index 69b6464278..8b35de0d49 100644 --- a/app/javascript/flavours/glitch/features/status/components/detailed_status.js +++ b/app/javascript/flavours/glitch/features/status/components/detailed_status.js @@ -125,6 +125,7 @@ export default class DetailedStatus extends ImmutablePureComponent { if (status.get('poll')) { media = ; + mediaIcon = 'tasks'; } else if (status.get('media_attachments').size > 0) { if (status.get('media_attachments').some(item => item.get('type') === 'unknown')) { media = ; @@ -161,7 +162,10 @@ export default class DetailedStatus extends ImmutablePureComponent { ); mediaIcon = 'picture-o'; } - } else media = ; + } else { + media = ; + mediaIcon = 'link'; + } if (status.get('application')) { applicationLink = ยท {status.getIn(['application', 'name'])};