Skip to content

Commit b3fae3a

Browse files
author
vikasrohit
authored
Merge pull request #633 from appirio-tech/dev
Promoting to prod before Products MVP
2 parents c222f33 + aca4069 commit b3fae3a

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

src/components/ActionCard/ActionCard.scss

+3
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@
140140
border-radius: 4px;
141141
padding: $base-unit*2;
142142
margin-bottom: -10px;
143+
width: calc(100% - 40px);
143144

144145
&:before {
145146
content: '';
@@ -166,6 +167,8 @@
166167
font-size: 13px;
167168
color: #47474f;
168169
line-height: $base-unit*4;
170+
width: 100%;
171+
overflow-x: auto;
169172
}
170173

171174
.comment-read-more {

src/components/Feed/FeedComments.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class FeedComments extends React.Component {
7070
<Comment
7171
key={idx}
7272
avatarUrl={ _.get(item, 'author.photoURL', null) }
73-
authorName={ item.author ? (item.author.firstName + ' ' + item.author.lastName) : 'Not Available' }
73+
authorName={ item.author ? (item.author.firstName + ' ' + item.author.lastName) : 'Connect user' }
7474
date={moment(item.date).fromNow()}
7575
active={item.unread}
7676
self={ item.author && item.author.userId === currentUser.userId}

src/components/MessageDetails/MessageDetails.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class MessageDetails extends React.Component {
4646
<Comment
4747
key={idx}
4848
avatarUrl={ _.get(item, 'author.photoURL', null) }
49-
authorName={ item.author ? (item.author.firstName + ' ' + item.author.lastName) : 'Not Available' }
49+
authorName={ item.author ? (item.author.firstName + ' ' + item.author.lastName) : 'Connect user' }
5050
date={moment(item.date).fromNow()}
5151
active={item.unread}
5252
self={ item.author && item.author.userId === currentUser.userId }

src/projects/detail/containers/FeedContainer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ class FeedView extends React.Component {
8181
mapFeed(feed, showAll = false, resetNewComment = false) {
8282
const { allMembers } = this.props
8383
const item = _.pick(feed, ['id', 'date', 'read', 'tag', 'title', 'totalPosts', 'userId', 'reference', 'referenceId', 'postIds', 'isAddingComment', 'isLoadingComments', 'error'])
84+
// Github issue##623, allow comments on all posts (including system posts)
85+
item.allowComments = true
8486
if (isSystemUser(item.userId)) {
8587
item.user = SYSTEM_USER
86-
item.allowComments = false
8788
} else {
8889
item.user = allMembers[item.userId]
89-
item.allowComments = true
9090
}
9191
item.unread = !feed.read
9292
// item.html = posts[feed.postIds[0]].body

src/projects/detail/containers/MessagesContainer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ class MessagesView extends React.Component {
9191
const { allMembers } = this.props
9292
const item = _.pick(feed, ['id', 'date', 'read', 'tag', 'title', 'totalPosts', 'userId', 'reference', 'referenceId', 'postIds', 'isAddingComment', 'isLoadingComments', 'error'])
9393
item.isActive = isActive
94+
// Github issue##623, allow comments on all posts (including system posts)
95+
item.allowComments = true
9496
if (isSystemUser(item.userId)) {
9597
item.user = SYSTEM_USER
96-
item.allowComments = false
9798
} else {
9899
item.user = allMembers[item.userId]
99-
item.allowComments = true
100100
}
101101
item.unread = !feed.read
102102
// item.html = posts[feed.postIds[0]].body

0 commit comments

Comments
 (0)