Add a tooltip explaining what a locked account is (#9403)

* create a title tooltip explaining what a locked account is

* improve phrasing

* minor phrasing fix to unify default and english
This commit is contained in:
Paweł Ngei
2018-12-01 14:25:15 +01:00
committed by Eugen Rochko
parent c480da375b
commit b9ec34de57
3 changed files with 4 additions and 1 deletions

View File

@ -16,6 +16,7 @@ const messages = defineMessages({
unblock: { id: 'account.unblock', defaultMessage: 'Unblock @{name}' },
edit_profile: { id: 'account.edit_profile', defaultMessage: 'Edit profile' },
linkVerifiedOn: { id: 'account.link_verified_on', defaultMessage: 'Ownership of this link was checked on {date}' },
account_locked: { id: 'account.locked_info', defaultMessage: 'This account privacy status is set to locked. The owner manually reviews who can follow them.' },
});
const dateFormatOptions = {
@ -148,7 +149,7 @@ class Header extends ImmutablePureComponent {
}
if (account.get('locked')) {
lockedIcon = <i className='fa fa-lock' />;
lockedIcon = <i className='fa fa-lock' title={intl.formatMessage(messages.account_locked)} />;
}
const content = { __html: account.get('note_emojified') };