Skip to content

Commit

Permalink
fix: card view "read more" link
Browse files Browse the repository at this point in the history
  • Loading branch information
maxceem committed Apr 10, 2020
1 parent 8daf3ee commit 309ef03
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/projects/components/projectsCard/ProjectCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ function ProjectCard({ project, disabled, currentUser, history, onChangeStatus,
const isMember = _.some(project.members, m => (m.userId === currentUser.userId && m.deletedAt === null))
// check whether has pending invition
const isInvited = _.some(project.invites, m => ((m.userId === currentUser.userId || m.email === currentUser.email) && !m.deletedAt && m.status === 'pending'))
const projectDetailsURL = project.version === 'v3'
? `/projects/${project.id}/scope`
: `/projects/${project.id}/specification`

return (
<div
className={className}
Expand All @@ -33,16 +37,16 @@ function ProjectCard({ project, disabled, currentUser, history, onChangeStatus,
currentMemberRole={currentMemberRole}
onChangeStatus={onChangeStatus}
showLink
showLinkURL={`/projects/${project.id}/specification`}
showLinkURL={projectDetailsURL}
canEditStatus={false}
/>
</div>
<div className="card-footer">
<ProjectManagerAvatars managers={project.members} maxShownNum={10} />
{(!isMember && isInvited) &&
<div className="spacing join-btn-container">
<Invitation
isLoading={isAcceptingInvite}
<Invitation
isLoading={isAcceptingInvite}
onAcceptClick={() => {
callInviteRequest(project, true)
}}
Expand Down

0 comments on commit 309ef03

Please sign in to comment.