mirror of
https://github.com/outline/outline.git
synced 2026-12-05 18:55:10 +03:00
Viewer badge
This commit is contained in:
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}
|
||||
|
||||
@@ -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.",
|
||||
|
||||
Reference in new issue
Block a user