@@ -26,6 +26,7 @@ import {
2626 PROJECT_ROLE_PROJECT_MANAGER ,
2727 PROJECT_ROLE_PROGRAM_MANAGER ,
2828 PROJECT_ROLE_SOLUTION_ARCHITECT ,
29+ PROJECT_CATEGORY_TAAS ,
2930} from '../../../config/constants'
3031import PERMISSIONS from '../../../config/permissions'
3132import { hasPermission } from '../../../helpers/permissions'
@@ -426,6 +427,14 @@ class ProjectInfoContainer extends React.Component {
426427 const { showDeleteConfirm } = this . state
427428 const { project, currentMemberRole, isSuperUser, phases, hideInfo, hideMembers,
428429 productsTimelines, isProjectProcessing, notifications, projectTemplates } = this . props
430+
431+ const projectTemplateId = project . templateId
432+ const projectTemplateKey = _ . get ( project , 'details.products[0]' )
433+ const projectTemplate = projectTemplateId
434+ ? _ . find ( projectTemplates , pt => pt . id === projectTemplateId )
435+ : getProjectTemplateByKey ( projectTemplates , projectTemplateKey )
436+
437+ const isTaaS = PROJECT_CATEGORY_TAAS === projectTemplate . category
429438 let directLinks = null
430439 // check if direct links need to be added
431440 const isMemberOrCopilot = _ . indexOf ( [
@@ -437,7 +446,8 @@ class ProjectInfoContainer extends React.Component {
437446 ] , currentMemberRole ) > - 1
438447 if ( isMemberOrCopilot || isSuperUser ) {
439448 directLinks = [ ]
440- directLinks . push ( { name : 'Launch Work Manager' , href : `${ WORK_MANAGER_APP } /${ project . id } /challenges` } )
449+ if ( ! isTaaS )
450+ directLinks . push ( { name : 'Launch Work Manager' , href : `${ WORK_MANAGER_APP } /${ project . id } /challenges` } )
441451 if ( project . directProjectId ) {
442452 directLinks . push ( { name : 'Project in Topcoder Direct' , href : `${ DIRECT_PROJECT_URL } ${ project . directProjectId } ` } )
443453 } else {
@@ -453,12 +463,6 @@ class ProjectInfoContainer extends React.Component {
453463 const notReadPhaseNotifications = filterTopicAndPostChangedNotifications ( projectNotReadNotifications , / ^ p h a s e # \d + $ / )
454464 const notReadAssetsNotifications = filterFileAndLinkChangedNotifications ( projectNotReadNotifications )
455465
456- const projectTemplateId = project . templateId
457- const projectTemplateKey = _ . get ( project , 'details.products[0]' )
458- const projectTemplate = projectTemplateId
459- ? _ . find ( projectTemplates , pt => pt . id === projectTemplateId )
460- : getProjectTemplateByKey ( projectTemplates , projectTemplateKey )
461-
462466 const renderFAQs = containsFAQ ( projectTemplate )
463467 const navLinks = getProjectNavLinks ( project , project . id , renderFAQs ) . map ( ( navLink ) => {
464468 if ( navLink . label === 'Messages' ) {
0 commit comments