@@ -7,6 +7,7 @@ import {Link} from 'react-router'
7
7
8
8
import { removeRetiredJob } from '../../manager/actions/status'
9
9
import SidebarPopover from './SidebarPopover'
10
+ import { getConfigProperty } from '../util/config'
10
11
11
12
import type { ServerJob } from '../../types'
12
13
import type { JobStatusState } from '../../types/reducers'
@@ -136,6 +137,7 @@ class RetiredJob extends Component<{
136
137
render ( ) {
137
138
const { job } = this . props
138
139
const path = this . _getPathToObject ( )
140
+ const supportEmail = getConfigProperty ( 'application.support_email' )
139
141
return (
140
142
< li className = 'job-container' >
141
143
< div style = { { float : 'left' } } >
@@ -189,12 +191,15 @@ class RetiredJob extends Component<{
189
191
< Icon type = 'bug' /> Oh no! Looks like an error has occurred.
190
192
</ span >
191
193
} >
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
+ }
198
203
< p > { window . location . href } </ p >
199
204
< span style = { { whiteSpace : 'pre' , fontSize : 'xx-small' } } >
200
205
{ job . status . exceptionDetails }
0 commit comments