File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/projects/detail/containers Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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'
2325import { PERMISSIONS } from '../../../config/permissions'
2426import { 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 {
You can’t perform that action at this time.
0 commit comments