diff --git a/frontend/src/views/chat/ChatCreator.vue b/frontend/src/views/chat/ChatCreator.vue index 93c57f79..90d21ab6 100644 --- a/frontend/src/views/chat/ChatCreator.vue +++ b/frontend/src/views/chat/ChatCreator.vue @@ -8,7 +8,11 @@ import { chatApi, ChatInfo } from '@/api/chat.ts' import { datasourceApi } from '@/api/datasource.ts' import Card from '@/views/ds/ChatCard.vue' import AddDrawer from '@/views/ds/AddDrawer.vue' +import { useUserStore } from '@/stores/user' +const userStore = useUserStore() + +const isWsAdmin = computed(() => userStore.isAdmin || userStore.isSpaceAdmin) const props = withDefaults( defineProps<{ hidden?: boolean @@ -187,7 +191,7 @@ defineExpose({ img-type="noneWhite" /> -