From 63f7d94b7ca380dcf510dc579301ed6e49408fc8 Mon Sep 17 00:00:00 2001 From: SHAN michel Date: Sun, 16 Apr 2023 13:59:41 +0200 Subject: [PATCH] feat(revision): only show non-guest users in the revision sidebar Signed-off-by: SHAN michel Only show non-guest users in the sidebar #2953 + frontend/json modificated Signed-off-by: SHAN michel Only show non-guest users in the sidebar #2953 + frontend/json modificated Signed-off-by: SHAN michel --- frontend/locales/en.json | 3 ++- .../document-bar/revisions/revision-list-entry.tsx | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/locales/en.json b/frontend/locales/en.json index 701797750..7e3ea55e3 100644 --- a/frontend/locales/en.json +++ b/frontend/locales/en.json @@ -411,7 +411,8 @@ "error": "An error occurred while fetching the revisions of this note.", "errorUser": "An error occurred while fetching the user information for this revision.", "length": "Length", - "download": "Download selected revision" + "download": "Download selected revision", + "guestCount": "Anonymous authors or guests" }, "clipboardImport": { "title": "Import from clipboard", diff --git a/frontend/src/components/editor-page/document-bar/revisions/revision-list-entry.tsx b/frontend/src/components/editor-page/document-bar/revisions/revision-list-entry.tsx index 6cba80ed3..28b5051be 100644 --- a/frontend/src/components/editor-page/document-bar/revisions/revision-list-entry.tsx +++ b/frontend/src/components/editor-page/document-bar/revisions/revision-list-entry.tsx @@ -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 = ({ active, on {revisionAuthors.value} + + + : {revision.anonymousAuthorCount} + ) }