Skip to content

Commit

Permalink
feat(kb): Empty states for list
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed Sep 10, 2024
1 parent 0339f55 commit 01c2628
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Binary file added public/assets/empty-states/knowledge-base.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion src/pages/KnowledgeBasesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
<knowledge-base-creation-dialog v-model="createKnowledgeDialog" @create="createKnowledgeBase" />
</div>

<div class="tw-space-y-4">
<div v-if="knowledgeStore.knowledgeBases.length === 0" class="tw-mx-auto tw-mt-10 tw-w-fit">
<img alt="No knowledge base" src="/assets/empty-states/knowledge-base.png" />
<p class="tw-text-lg text-purple-700 tw-w-fit tw-mx-auto">No Knowledge Base created</p>
<p class="text-primary tw-w-fit tw-mx-auto">Create a Knowledge Base to get started</p>
</div>
<div v-else class="tw-space-y-4">
<RouterLink
v-for="knowledgeBase of knowledgeStore.knowledgeBases"
:key="knowledgeBase.id"
Expand Down

0 comments on commit 01c2628

Please sign in to comment.