mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 09:16:30 -05:00
enhancement(revisions): show guest users
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
d45ab1eb29
commit
57aa5a971c
1 changed files with 7 additions and 1 deletions
|
@ -51,7 +51,7 @@ export const RevisionListEntry: React.FC<RevisionListEntryProps> = ({ active, on
|
|||
showErrorNotification('editor.modal.revision.errorUser')(error as Error)
|
||||
return null
|
||||
}
|
||||
}, [])
|
||||
}, [showErrorNotification, revision])
|
||||
|
||||
return (
|
||||
<ListGroup.Item
|
||||
|
@ -73,6 +73,12 @@ export const RevisionListEntry: React.FC<RevisionListEntryProps> = ({ active, on
|
|||
<WaitSpinner />
|
||||
</ShowIf>
|
||||
<ShowIf condition={!revisionAuthors.error && !revisionAuthors.loading}>{revisionAuthors.value}</ShowIf>
|
||||
<ShowIf condition={revision.authorUsernames.length > 0 && revision.anonymousAuthorCount > 0}>
|
||||
<span className={'mx-1'}>+</span>
|
||||
</ShowIf>
|
||||
<ShowIf condition={revision.anonymousAuthorCount > 0}>
|
||||
<Trans i18nKey={'editor.modal.revision.guests'} values={{ count: revision.anonymousAuthorCount }} />
|
||||
</ShowIf>
|
||||
</span>
|
||||
</ListGroup.Item>
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue