From 309ef038d16f83c690f92ec6b907befd99cf5bc7 Mon Sep 17 00:00:00 2001 From: Maksym Mykhailenko Date: Fri, 10 Apr 2020 16:02:20 +0300 Subject: [PATCH] fix: card view "read more" link --- src/projects/components/projectsCard/ProjectCard.jsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/projects/components/projectsCard/ProjectCard.jsx b/src/projects/components/projectsCard/ProjectCard.jsx index 47037d73c..a2c4e9a53 100644 --- a/src/projects/components/projectsCard/ProjectCard.jsx +++ b/src/projects/components/projectsCard/ProjectCard.jsx @@ -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 (
@@ -41,8 +45,8 @@ function ProjectCard({ project, disabled, currentUser, history, onChangeStatus, {(!isMember && isInvited) &&
- { callInviteRequest(project, true) }}