Skip to content

Commit

Permalink
fix(JobMonitor): replace conveyal support email w/ config value
Browse files Browse the repository at this point in the history
  • Loading branch information
landonreed committed Jul 8, 2020
1 parent 336295d commit 9e148ff
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions lib/common/components/JobMonitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {Link} from 'react-router'

import {removeRetiredJob} from '../../manager/actions/status'
import SidebarPopover from './SidebarPopover'
import {getConfigProperty} from '../util/config'

import type {ServerJob} from '../../types'
import type {JobStatusState} from '../../types/reducers'
Expand Down Expand Up @@ -136,6 +137,7 @@ class RetiredJob extends Component<{
render () {
const {job} = this.props
const path = this._getPathToObject()
const supportEmail = getConfigProperty('application.support_email')
return (
<li className='job-container'>
<div style={{ float: 'left' }}>
Expand Down Expand Up @@ -189,12 +191,15 @@ class RetiredJob extends Component<{
<Icon type='bug' /> Oh no! Looks like an error has occurred.
</span>
}>
<p>
To submit an error report email a screenshot of your browser
window, the following text (current URL and error details),
and a detailed description of the steps you followed
to <a href='mailto:support@conveyal.com'>support@conveyal.com</a>.
</p>
{supportEmail
? <p>
To submit an error report email a screenshot of your browser
window, the following text (current URL and error details),
and a detailed description of the steps you followed
to <a href={`mailto:${supportEmail}`}>{supportEmail}</a>.
</p>
: null
}
<p>{window.location.href}</p>
<span style={{whiteSpace: 'pre', fontSize: 'xx-small'}}>
{job.status.exceptionDetails}
Expand Down

0 comments on commit 9e148ff

Please # to comment.