~cytrogen/masto-fe

c45a965bf7fadae2356d4abf7ce057bfcec5d9ba — Claire 2 years ago 9bd012b
[Glitch] Change “About” and “Privacy policy” links to open in a new tab in advanced interface

Port 71db616fed817893d0efa363f0e7dbfcf23866a0 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
M app/javascript/flavours/glitch/features/getting_started/index.jsx => app/javascript/flavours/glitch/features/getting_started/index.jsx +1 -1
@@ 192,7 192,7 @@ class GettingStarted extends ImmutablePureComponent {
            )}
          </div>

          <LinkFooter />
          <LinkFooter multiColumn />
        </div>

        {(multiColumn && showTrends) && <TrendsContainer />}

M app/javascript/flavours/glitch/features/ui/components/link_footer.jsx => app/javascript/flavours/glitch/features/ui/components/link_footer.jsx +4 -2
@@ 38,6 38,7 @@ class LinkFooter extends PureComponent {
  };

  static propTypes = {
    multiColumn: PropTypes.bool,
    onLogout: PropTypes.func.isRequired,
    intl: PropTypes.object.isRequired,
  };


@@ 53,6 54,7 @@ class LinkFooter extends PureComponent {

  render () {
    const { signedIn, permissions } = this.context.identity;
    const { multiColumn } = this.props;

    const canInvite = signedIn && ((permissions & PERMISSION_INVITE_USERS) === PERMISSION_INVITE_USERS);
    const canProfileDirectory = profileDirectory;


@@ 64,7 66,7 @@ class LinkFooter extends PureComponent {
        <p>
          <strong>{domain}</strong>:
          {' '}
          <Link to='/about'><FormattedMessage id='footer.about' defaultMessage='About' /></Link>
          <Link to='/about' target={multiColumn ? '_blank' : undefined}><FormattedMessage id='footer.about' defaultMessage='About' /></Link>
          {statusPageUrl && (
            <>
              {DividingCircle}


@@ 84,7 86,7 @@ class LinkFooter extends PureComponent {
            </>
          )}
          {DividingCircle}
          <Link to='/privacy-policy'><FormattedMessage id='footer.privacy_policy' defaultMessage='Privacy policy' /></Link>
          <Link to='/privacy-policy' target={multiColumn ? '_blank' : undefined}><FormattedMessage id='footer.privacy_policy' defaultMessage='Privacy policy' /></Link>
        </p>

        <p>