Fix error boundary DOM

master
Thibaut Girka 6 years ago committed by ThibG
parent 82cd138c89
commit 0ef6a114e7
  1. 66
      app/javascript/flavours/glitch/components/error_boundary.js

@ -50,43 +50,43 @@ export default class ErrorBoundary extends React.PureComponent {
<h1><FormattedMessage id='web_app_crash.title' defaultMessage="We're sorry, but something went wrong with the Mastodon app." /></h1> <h1><FormattedMessage id='web_app_crash.title' defaultMessage="We're sorry, but something went wrong with the Mastodon app." /></h1>
<p> <p>
<FormattedMessage id='web_app_crash.content' defaultMessage='You could try any of the following:' /> <FormattedMessage id='web_app_crash.content' defaultMessage='You could try any of the following:' />
<ul> </p>
<li> <ul>
<FormattedMessage <li>
id='web_app_crash.report_issue' <FormattedMessage
defaultMessage='Report a bug in the {issuetracker}' id='web_app_crash.report_issue'
values={{ issuetracker: <a href='https://github.com/glitch-soc/mastodon/issues' rel='noopener' target='_blank'><FormattedMessage id='web_app_crash.issue_tracker' defaultMessage='issue tracker' /></a> }} defaultMessage='Report a bug in the {issuetracker}'
/> values={{ issuetracker: <a href='https://github.com/glitch-soc/mastodon/issues' rel='noopener' target='_blank'><FormattedMessage id='web_app_crash.issue_tracker' defaultMessage='issue tracker' /></a> }}
{ debugInfo !== '' && ( />
<details> { debugInfo !== '' && (
<summary><FormattedMessage id='web_app_crash.debug_info' defaultMessage='Debug information' /></summary> <details>
<textarea <summary><FormattedMessage id='web_app_crash.debug_info' defaultMessage='Debug information' /></summary>
className='web_app_crash-stacktrace' <textarea
value={debugInfo} className='web_app_crash-stacktrace'
rows='10' value={debugInfo}
readOnly rows='10'
/> readOnly
</details> />
)} </details>
</li> )}
</li>
<li>
<FormattedMessage
id='web_app_crash.reload_page'
defaultMessage='{reload} the current page'
values={{ reload: <a href='#' onClick={this.handleReload}><FormattedMessage id='web_app_crash.reload' defaultMessage='Reload' /></a> }}
/>
</li>
{ preferencesLink !== undefined && (
<li> <li>
<FormattedMessage <FormattedMessage
id='web_app_crash.reload_page' id='web_app_crash.change_your_settings'
defaultMessage='{reload} the current page' defaultMessage='Change your {settings}'
values={{ reload: <a href='#' onClick={this.handleReload}><FormattedMessage id='web_app_crash.reload' defaultMessage='Reload' /></a> }} values={{ settings: <a href={preferencesLink}><FormattedMessage id='web_app_crash.settings' defaultMessage='settings' /></a> }}
/> />
</li> </li>
{ preferencesLink !== undefined && ( )}
<li> </ul>
<FormattedMessage
id='web_app_crash.change_your_settings'
defaultMessage='Change your {settings}'
values={{ settings: <a href={preferencesLink}><FormattedMessage id='web_app_crash.settings' defaultMessage='settings' /></a> }}
/>
</li>
)}
</ul>
</p>
</div> </div>
</div> </div>
); );

Loading…
Cancel
Save