White label ErrorView.jsx

This commit is contained in:
David Meza
2017-11-26 22:39:28 -05:00
parent 8f91ea5b77
commit 4bf7069ea8

View File

@@ -3,7 +3,7 @@
const React = require('react'); const React = require('react');
const PropTypes = require('prop-types'); const PropTypes = require('prop-types');
const {Grid, Row, Col} = require('react-bootstrap'); const {Grid, Row, Col} = require('react-bootstrap');
const {shell} = require('electron'); const {shell, remote} = require('electron');
function ErrorView(props) { function ErrorView(props) {
const classNames = ['container', 'ErrorView']; const classNames = ['container', 'ErrorView'];
@@ -37,13 +37,13 @@ function ErrorView(props) {
md={10} md={10}
lg={8} lg={8}
> >
<h2>{'Cannot connect to Mattermost'}</h2> <h2>{`Cannot connect to ${remote.app.getName()}`}</h2>
<hr/> <hr/>
<p>{'We\'re having trouble connecting to Mattermost. If refreshing this page (Ctrl+R or Command+R) does not work please verify that:'}</p> <p>{`We're having trouble connecting to ${remote.app.getName()}. If refreshing this page (Ctrl+R or Command+R) does not work please verify that:`}</p>
<br/> <br/>
<ul className='ErrorView-bullets' > <ul className='ErrorView-bullets' >
<li>{'Your computer is connected to the internet.'}</li> <li>{'Your computer is connected to the internet.'}</li>
<li>{'The Mattermost URL '} <li>{`The ${remote.app.getName()} URL `}
<a <a
onClick={handleClick} onClick={handleClick}
href={props.errorInfo.validatedURL} href={props.errorInfo.validatedURL}