diff options
author | David Yip <yipdw@member.fsf.org> | 2018-03-29 09:26:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-29 09:26:31 -0500 |
commit | 1bd12cf8ebaebfac440bcefd241b564997272ffb (patch) | |
tree | 61889ce4f92f8aa107eb92f053f119cfdbd07ea1 /app/javascript/flavours/glitch/features/account/components | |
parent | 4e45954280390f90dcacc2fd0a33bf75114b38d6 (diff) | |
parent | b5948044b31c548de15337dcdca35b4c894224c0 (diff) |
Merge pull request #404 from ThibG/glitch-soc/features/moved-note
[Untested] [Glitch] Profile redirect notes
Diffstat (limited to 'app/javascript/flavours/glitch/features/account/components')
-rw-r--r-- | app/javascript/flavours/glitch/features/account/components/header.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/account/components/header.js b/app/javascript/flavours/glitch/features/account/components/header.js index f346bd108..a208f1a8e 100644 --- a/app/javascript/flavours/glitch/features/account/components/header.js +++ b/app/javascript/flavours/glitch/features/account/components/header.js @@ -10,6 +10,7 @@ import IconButton from 'flavours/glitch/components/icon_button'; import emojify from 'flavours/glitch/util/emoji'; import { me } from 'flavours/glitch/util/initial_state'; import { processBio } from 'flavours/glitch/util/bio_metadata'; +import classNames from 'classnames'; const messages = defineMessages({ unfollow: { id: 'account.unfollow', defaultMessage: 'Unfollow' }, @@ -75,11 +76,15 @@ export default class Header extends ImmutablePureComponent { } } + if (account.get('moved') && !account.getIn(['relationship', 'following'])) { + actionBtn = ''; + } + const { text, metadata } = processBio(account.get('note')); return ( <div className='account__header__wrapper'> - <div className='account__header' style={{ backgroundImage: `url(${account.get('header')})` }}> + <div className={classNames('account__header', { inactive: !!account.get('moved') })} style={{ backgroundImage: `url(${account.get('header')})` }}> <div> <a href={account.get('url')} |