Skip to content

Commit 71df665

Browse files
authored
Merge pull request #4217 from appirio-tech/hotfix/work-manager-link
[HOTFIX] [PROD] Show work manager link
2 parents 2961ec6 + f5217a7 commit 71df665

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/projects/detail/containers/ProjectInfoContainer.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ import {
1919
PROJECT_STATUS_COMPLETED,
2020
PHASE_STATUS_REVIEWED,
2121
PHASE_STATUS_ACTIVE,
22+
PROJECT_CATEGORY_TAAS,
23+
WORK_MANAGER_APP
2224
} from '../../../config/constants'
2325
import { PERMISSIONS } from '../../../config/permissions'
2426
import { hasPermission } from '../../../helpers/permissions'
@@ -428,12 +430,13 @@ class ProjectInfoContainer extends React.Component {
428430
? _.find(projectTemplates, pt => pt.id === projectTemplateId)
429431
: getProjectTemplateByKey(projectTemplates, projectTemplateKey)
430432

431-
// const isTaaS = PROJECT_CATEGORY_TAAS === projectTemplate.category
433+
const isTaaS = PROJECT_CATEGORY_TAAS === projectTemplate.category
432434
let directLinks = null
433435
if (hasPermission(PERMISSIONS.VIEW_PROJECT_SPECIAL_LINKS)) {
434436
directLinks = []
435-
// if(!isTaaS)
436-
// directLinks.push({name: 'Launch Work Manager', href: `${WORK_MANAGER_APP}/${project.id}/challenges`})
437+
if (!isTaaS) {
438+
directLinks.push({name: 'Launch Work Manager', href: `${WORK_MANAGER_APP}/${project.id}/challenges`})
439+
}
437440
if (project.directProjectId) {
438441
directLinks.push({name: 'Project in Topcoder Direct', href: `${DIRECT_PROJECT_URL}${project.directProjectId}`})
439442
} else {

0 commit comments

Comments
 (0)