Viewer badge

This commit is contained in:
Tom Moor committed 2024-12-27 10:27:50 +00:00
1 parent 803b71ec1b
commit a922f7e437
2 files changed
+8 -6

No files matched your search

@@ -13,6 +13,7 @@ import Group from "~/models/Group";
import User from "~/models/User";
import ArrowKeyNavigation from "~/components/ArrowKeyNavigation";
import { Avatar, GroupAvatar, AvatarSize, IAvatar } from "~/components/Avatar";
import Badge from "~/components/Badge";
import Empty from "~/components/Empty";
import Placeholder from "~/components/List/Placeholder";
import Scrollable from "~/components/Scrollable";
@@ -154,11 +155,12 @@ export const Suggestions = observer(
}
return {
title: suggestion.name,
subtitle: suggestion.email
? suggestion.email
: suggestion.isViewer
? t("Viewer")
: t("Editor"),
subtitle: (
<>
{suggestion.email ? `${suggestion.email} ` : ""}
{suggestion.isViewer && <Badge>{t("Viewer")}</Badge>}
</>
),
image: (
<Avatar
model={suggestion}
+1 -1
View File
@@ -328,7 +328,6 @@
"Add": "Add",
"Add or invite": "Add or invite",
"Viewer": "Viewer",
"Editor": "Editor",
"Suggestions for invitation": "Suggestions for invitation",
"No matches": "No matches",
"Can view": "Can view",
@@ -730,6 +729,7 @@
"Invited {{roleName}} will receive access to": "Invited {{roleName}} will receive access to",
"{{collectionCount}} collections": "{{collectionCount}} collections",
"Can manage all workspace settings": "Can manage all workspace settings",
"Editor": "Editor",
"Can create, edit, and delete documents": "Can create, edit, and delete documents",
"Can view and comment": "Can view and comment",
"Invite people to join your workspace. They can sign in with {{signinMethods}} or use their email address.": "Invite people to join your workspace. They can sign in with {{signinMethods}} or use their email address.",