mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-17 08:34:54 -04:00
feat(revision): only show non-guest users in the revision sidebar
Signed-off-by: SHAN michel <yuplasmas@gmail.com> Only show non-guest users in the sidebar #2953 + frontend/json modificated Signed-off-by: SHAN michel <yuplasmas@gmail.com> Only show non-guest users in the sidebar #2953 + frontend/json modificated Signed-off-by: SHAN michel <yuplasmas@gmail.com>
This commit is contained in:
parent
62e29613cc
commit
63f7d94b7c
2 changed files with 7 additions and 1 deletions
|
@ -17,6 +17,7 @@ import { ListGroup } from 'react-bootstrap'
|
|||
import { Clock as IconClock } from 'react-bootstrap-icons'
|
||||
import { FileText as IconFileText } from 'react-bootstrap-icons'
|
||||
import { Person as IconPerson } from 'react-bootstrap-icons'
|
||||
import { PersonPlus as IconPersonPlus } from 'react-bootstrap-icons'
|
||||
import { Trans, useTranslation } from 'react-i18next'
|
||||
import { useAsync } from 'react-use'
|
||||
|
||||
|
@ -74,6 +75,10 @@ export const RevisionListEntry: React.FC<RevisionListEntryProps> = ({ active, on
|
|||
</ShowIf>
|
||||
<ShowIf condition={!revisionAuthors.error && !revisionAuthors.loading}>{revisionAuthors.value}</ShowIf>
|
||||
</span>
|
||||
<span>
|
||||
<UiIcon icon={IconPersonPlus} className='mx-2' />
|
||||
<Trans i18nKey={'editor.modal.revision.guestCount'} />: {revision.anonymousAuthorCount}
|
||||
</span>
|
||||
</ListGroup.Item>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue