mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-29 05:15:12 +02:00
add clarity around assistants and names (#2663)
This commit is contained in:
@@ -20,12 +20,16 @@ import { UserRole, User } from "@/lib/types";
|
|||||||
import { useUser } from "@/components/user/UserProvider";
|
import { useUser } from "@/components/user/UserProvider";
|
||||||
|
|
||||||
function PersonaTypeDisplay({ persona }: { persona: Persona }) {
|
function PersonaTypeDisplay({ persona }: { persona: Persona }) {
|
||||||
if (persona.is_default_persona) {
|
if (persona.builtin_persona) {
|
||||||
return <Text>Built-In</Text>;
|
return <Text>Built-In</Text>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (persona.is_default_persona) {
|
||||||
|
return <Text>Default</Text>;
|
||||||
|
}
|
||||||
|
|
||||||
if (persona.is_public) {
|
if (persona.is_public) {
|
||||||
return <Text>Global</Text>;
|
return <Text>Public</Text>;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (persona.groups.length > 0 || persona.users.length > 0) {
|
if (persona.groups.length > 0 || persona.users.length > 0) {
|
||||||
|
Reference in New Issue
Block a user