Skip to content

Commit

Permalink
Add link to network troubleshooting guide for timeouts.
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmaddock committed Oct 1, 2018
1 parent 41eac73 commit ee24239
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/renderer/components/lobby/Disconnect.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
margin-right: 0.5rem;
}

.info a {
text-decoration: underline;
}

.titlebar {
composes: titlebar from '../GameLobby.css';
}
12 changes: 11 additions & 1 deletion app/renderer/components/lobby/Disconnect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,24 @@ export class Disconnect extends Component<IProps> {
const reasonKey: any = NetworkDisconnectMessages[reason]
const msg = t(reasonKey) || reasonKey

// prettier-ignore
return (
<div className={styles.container}>
<TitleBar className={styles.titlebar} />

<h1 className={styles.header}>{t('disconnected')}</h1>
<p className={styles.info}>
<Icon name="info" />
{msg}
<span>
{msg}

{/* Temporary message for linking to guide until l10n supports links. */}
{reason === NetworkDisconnectReason.Timeout && (
<>
. See <ExternalLink href="https://github.com/samuelmaddock/metastream/wiki/Network-Troubleshooting">Network Troubleshooting guide</ExternalLink> for help.
</>
)}
</span>
</p>
<Link to="/">
<MenuButton size="medium">{t('ok')}</MenuButton>
Expand Down

0 comments on commit ee24239

Please sign in to comment.