From 7e63fb26e001da6573cdc8d059a2bd47efd62c88 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Wed, 28 Nov 2018 15:35:44 +0100 Subject: [PATCH] Do not hardcode preferences link, pleroma doesn't have it --- .../glitch/components/error_boundary.js | 17 ++++++++++------- 1 file 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 fd37383f21..142a0c21a1 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: }} /> -
  • - }} - /> -
  • + { preferencesLink !== undefined && ( +
  • + }} + /> +
  • + )}