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