@@ -7,6 +7,7 @@ import {Link} from 'react-router'
77
88import { removeRetiredJob } from '../../manager/actions/status'
99import SidebarPopover from './SidebarPopover'
10+ import { getConfigProperty } from '../util/config'
1011
1112import type { ServerJob } from '../../types'
1213import type { JobStatusState } from '../../types/reducers'
@@ -136,6 +137,7 @@ class RetiredJob extends Component<{
136137 render ( ) {
137138 const { job } = this . props
138139 const path = this . _getPathToObject ( )
140+ const supportEmail = getConfigProperty ( 'application.support_email' )
139141 return (
140142 < li className = 'job-container' >
141143 < div style = { { float : 'left' } } >
@@ -189,12 +191,15 @@ class RetiredJob extends Component<{
189191 < Icon type = 'bug' /> Oh no! Looks like an error has occurred.
190192 </ span >
191193 } >
192- < p >
193- To submit an error report email a screenshot of your browser
194- window, the following text (current URL and error details),
195- and a detailed description of the steps you followed
196- to < a href = 'mailto:support@conveyal.com' > support@conveyal.com</ a > .
197- </ p >
194+ { supportEmail
195+ ? < p >
196+ To submit an error report email a screenshot of your browser
197+ window, the following text (current URL and error details),
198+ and a detailed description of the steps you followed
199+ to < a href = { `mailto:${ supportEmail } ` } > { supportEmail } </ a > .
200+ </ p >
201+ : null
202+ }
198203 < p > { window . location . href } </ p >
199204 < span style = { { whiteSpace : 'pre' , fontSize : 'xx-small' } } >
200205 { job . status . exceptionDetails }
0 commit comments