mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-03 08:28:54 -04:00
Extract URLs in extra file and change riot link to element-link (#551)
* Update matrix chat link to new element URL * Correct other usages of the element link * Extracted static external links into separate file
This commit is contained in:
parent
ca2bd1d90f
commit
be2428f22c
8 changed files with 43 additions and 22 deletions
|
@ -3,6 +3,7 @@ import { Button, Container } from 'react-bootstrap'
|
|||
import frontendVersion from '../../version.json'
|
||||
import { ForkAwesomeIcon } from '../common/fork-awesome/fork-awesome-icon'
|
||||
import { ExternalLink } from '../common/links/external-link'
|
||||
import links from '../../links.json'
|
||||
|
||||
export class ErrorBoundary extends Component {
|
||||
state: {
|
||||
|
@ -35,7 +36,9 @@ export class ErrorBoundary extends Component {
|
|||
<div className='text-white d-flex flex-column align-items-center justify-content-center my-5'>
|
||||
<h1>An unknown error occurred</h1>
|
||||
<p>Don't worry, this happens sometimes. If this is the first time you see this page then try reloading the app.</p>
|
||||
If you can reproduce this error, then we would be glad if you <ExternalLink text={'open an issue on github'} href={frontendVersion.issueTrackerUrl} className={'text-primary'}/> or <ExternalLink text={'contact us on matrix.'} href={'https://riot.im/app/#/room/#hedgedoc:matrix.org'} className={'text-primary'}/>
|
||||
If you can reproduce this error, then we would be glad if you 
|
||||
<ExternalLink text={'open an issue on github'} href={frontendVersion.issueTrackerUrl} className={'text-primary'}/> 
|
||||
or <ExternalLink text={'contact us on matrix.'} href={links.chatElement} className={'text-primary'}/>
|
||||
<Button onClick={() => this.refreshPage()} title={'Reload App'} className={'mt-4'}>
|
||||
<ForkAwesomeIcon icon={'refresh'}/> Reload App
|
||||
</Button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue