summaryrefslogtreecommitdiffstats
path: root/webapp/components/post_view
diff options
context:
space:
mode:
authorAsaad Mahmood <asaadmahmood@users.noreply.github.com>2017-07-31 17:10:43 +0500
committerJoram Wilander <jwawilander@gmail.com>2017-07-31 08:10:43 -0400
commit860f2c8332f34d02e53ea1460decb4d1490bcbd4 (patch)
treeeb7523405ac99fbc656f74321e3be8ac66138fb9 /webapp/components/post_view
parent3c0f082506a68240abd1960cbd0fda22679e12c2 (diff)
downloadchat-860f2c8332f34d02e53ea1460decb4d1490bcbd4.tar.gz
chat-860f2c8332f34d02e53ea1460decb4d1490bcbd4.tar.bz2
chat-860f2c8332f34d02e53ea1460decb4d1490bcbd4.zip
Multiple Ui improvements (#7029)
* PLT-7119 - Updating headings on compact view * PLT-7103 - Removing line below channel intro * PLT-7112 - Fixing system console banner * PLT-7144 - Adding ellipsis to system console boxes * PLT-7181 - Changing channel header opacity * PLT-6899 - Updating unread bar * Updating margin for new messages indicator
Diffstat (limited to 'webapp/components/post_view')
-rw-r--r--webapp/components/post_view/new_message_indicator.jsx11
1 files changed, 7 insertions, 4 deletions
diff --git a/webapp/components/post_view/new_message_indicator.jsx b/webapp/components/post_view/new_message_indicator.jsx
index d5fb6c1d3..537520c29 100644
--- a/webapp/components/post_view/new_message_indicator.jsx
+++ b/webapp/components/post_view/new_message_indicator.jsx
@@ -3,6 +3,7 @@
import React from 'react';
import PropTypes from 'prop-types';
+import Constants from 'utils/constants.jsx';
import {FormattedMessage} from 'react-intl';
export default class NewMessageIndicator extends React.PureComponent {
@@ -30,6 +31,7 @@ export default class NewMessageIndicator extends React.PureComponent {
}
render() {
+ const unreadIcon = Constants.UNREAD_ICON_SVG;
let className = 'new-messages__button';
if (this.state.visible > 0) {
className += ' visible';
@@ -44,14 +46,15 @@ export default class NewMessageIndicator extends React.PureComponent {
ref='indicator'
>
<div onClick={this.props.onClick}>
- <i
- className='fa fa-angle-down'
- />
<FormattedMessage
id='posts_view.newMsgBelow'
- defaultMessage='New {count, plural, one {message} other {messages}} below'
+ defaultMessage='New {count, plural, one {message} other {messages}}'
values={{count: this.props.newMessages}}
/>
+ <span
+ className='icon icon__unread'
+ dangerouslySetInnerHTML={{__html: unreadIcon}}
+ />
</div>
</div>
);