Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/components/ActionCard/ActionCard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
border-radius: 4px;
padding: $base-unit*2;
margin-bottom: -10px;
width: calc(100% - 40px);

&:before {
content: '';
Expand All @@ -166,6 +167,8 @@
font-size: 13px;
color: #47474f;
line-height: $base-unit*4;
width: 100%;
overflow-x: auto;
}

.comment-read-more {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Feed/FeedComments.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class FeedComments extends React.Component {
<Comment
key={idx}
avatarUrl={ _.get(item, 'author.photoURL', null) }
authorName={ item.author ? (item.author.firstName + ' ' + item.author.lastName) : 'Not Available' }
authorName={ item.author ? (item.author.firstName + ' ' + item.author.lastName) : 'Connect user' }
date={moment(item.date).fromNow()}
active={item.unread}
self={ item.author && item.author.userId === currentUser.userId}
Expand Down
2 changes: 1 addition & 1 deletion src/components/MessageDetails/MessageDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class MessageDetails extends React.Component {
<Comment
key={idx}
avatarUrl={ _.get(item, 'author.photoURL', null) }
authorName={ item.author ? (item.author.firstName + ' ' + item.author.lastName) : 'Not Available' }
authorName={ item.author ? (item.author.firstName + ' ' + item.author.lastName) : 'Connect user' }
date={moment(item.date).fromNow()}
active={item.unread}
self={ item.author && item.author.userId === currentUser.userId }
Expand Down
4 changes: 2 additions & 2 deletions src/projects/detail/containers/FeedContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ class FeedView extends React.Component {
mapFeed(feed, showAll = false, resetNewComment = false) {
const { allMembers } = this.props
const item = _.pick(feed, ['id', 'date', 'read', 'tag', 'title', 'totalPosts', 'userId', 'reference', 'referenceId', 'postIds', 'isAddingComment', 'isLoadingComments', 'error'])
// Github issue##623, allow comments on all posts (including system posts)
item.allowComments = true
if (isSystemUser(item.userId)) {
item.user = SYSTEM_USER
item.allowComments = false
} else {
item.user = allMembers[item.userId]
item.allowComments = true
}
item.unread = !feed.read
// item.html = posts[feed.postIds[0]].body
Expand Down
4 changes: 2 additions & 2 deletions src/projects/detail/containers/MessagesContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ class MessagesView extends React.Component {
const { allMembers } = this.props
const item = _.pick(feed, ['id', 'date', 'read', 'tag', 'title', 'totalPosts', 'userId', 'reference', 'referenceId', 'postIds', 'isAddingComment', 'isLoadingComments', 'error'])
item.isActive = isActive
// Github issue##623, allow comments on all posts (including system posts)
item.allowComments = true
if (isSystemUser(item.userId)) {
item.user = SYSTEM_USER
item.allowComments = false
} else {
item.user = allMembers[item.userId]
item.allowComments = true
}
item.unread = !feed.read
// item.html = posts[feed.postIds[0]].body
Expand Down