From 9e148fff6a7bb8bc685bac0de8b43f0512561ca1 Mon Sep 17 00:00:00 2001 From: Landon Reed Date: Wed, 8 Jul 2020 14:43:32 -0400 Subject: [PATCH] fix(JobMonitor): replace conveyal support email w/ config value --- lib/common/components/JobMonitor.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/lib/common/components/JobMonitor.js b/lib/common/components/JobMonitor.js index 70cb1e27b..e8a6a8a12 100644 --- a/lib/common/components/JobMonitor.js +++ b/lib/common/components/JobMonitor.js @@ -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' @@ -136,6 +137,7 @@ class RetiredJob extends Component<{ render () { const {job} = this.props const path = this._getPathToObject() + const supportEmail = getConfigProperty('application.support_email') return (
  • @@ -189,12 +191,15 @@ class RetiredJob extends Component<{ Oh no! Looks like an error has occurred. }> -

    - 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 support@conveyal.com. -

    + {supportEmail + ?

    + 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 {supportEmail}. +

    + : null + }

    {window.location.href}

    {job.status.exceptionDetails}