diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-03-11 11:32:21 +0100 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2019-03-11 13:08:21 +0100 |
commit | 9c620fc5c80ff0f2aa600069dfdf868e150b0799 (patch) | |
tree | 02e04d7d915c0444b2fe8741b46701f27c2f0b5c /app/javascript/flavours/glitch/components | |
parent | 7d026aa07927a8960a573350a1aa2a538ef938f3 (diff) |
[Glitch] Add support for poll ending notifications
Port front-end parts of 3a92885a860df12b12d8356faf179a3fc63be6f2 to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/components')
-rw-r--r-- | app/javascript/flavours/glitch/components/status_prepend.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/components/status_prepend.js b/app/javascript/flavours/glitch/components/status_prepend.js index 4e329f546..d1a7c5833 100644 --- a/app/javascript/flavours/glitch/components/status_prepend.js +++ b/app/javascript/flavours/glitch/components/status_prepend.js @@ -62,6 +62,13 @@ export default class StatusPrepend extends React.PureComponent { values={{ name : link }} /> ); + case 'poll': + return ( + <FormattedMessage + id='notification.poll' + defaultMessage='Your poll has ended' + /> + ); } return null; } @@ -75,7 +82,7 @@ export default class StatusPrepend extends React.PureComponent { <div className={type === 'reblogged_by' || type === 'featured' ? 'status__prepend-icon-wrapper' : 'notification__favourite-icon-wrapper'}> <i className={`fa fa-fw fa-${ - type === 'favourite' ? 'star star-icon' : (type === 'featured' ? 'thumb-tack' : 'retweet') + type === 'favourite' ? 'star star-icon' : (type === 'featured' ? 'thumb-tack' : (type === 'poll' ? 'tasks' : 'retweet')) } status__prepend-icon`} /> </div> |