diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-11-28 15:35:44 +0100 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-11-28 22:36:01 +0100 |
commit | 7e63fb26e001da6573cdc8d059a2bd47efd62c88 (patch) | |
tree | f955d365d9d6be2bd78cc3645719f53a6f431fe6 /app/javascript | |
parent | 922d05864f4ba37a4026cd5f7e6e6ed5417a7404 (diff) |
Do not hardcode preferences link, pleroma doesn't have it
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/flavours/glitch/components/error_boundary.js | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/app/javascript/flavours/glitch/components/error_boundary.js b/app/javascript/flavours/glitch/components/error_boundary.js index fd37383f2..142a0c21a 100644 --- a/app/javascript/flavours/glitch/components/error_boundary.js +++ b/app/javascript/flavours/glitch/components/error_boundary.js @@ -1,6 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; +import { preferencesLink } from 'flavours/glitch/util/backend_links'; export default class ErrorBoundary extends React.PureComponent { @@ -75,13 +76,15 @@ export default class ErrorBoundary extends React.PureComponent { values={{ reload: <a href='#' onClick={this.handleReload}><FormattedMessage id='web_app_crash.reload' defaultMessage='Reload' /></a> }} /> </li> - <li> - <FormattedMessage - id='web_app_crash.change_your_settings' - defaultMessage='Change your {settings}' - values={{ settings: <a href='/settings/preferences'><FormattedMessage id='web_app_crash.settings' defaultMessage='settings' /></a> }} - /> - </li> + { preferencesLink !== undefined && ( + <li> + <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> |