Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9e148ff

Browse files
committedJul 8, 2020
fix(JobMonitor): replace conveyal support email w/ config value
1 parent 336295d commit 9e148ff

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed
 

‎lib/common/components/JobMonitor.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {Link} from 'react-router'
77

88
import {removeRetiredJob} from '../../manager/actions/status'
99
import SidebarPopover from './SidebarPopover'
10+
import {getConfigProperty} from '../util/config'
1011

1112
import type {ServerJob} from '../../types'
1213
import 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

Comments
 (0)
Please sign in to comment.