Skip to content

Commit

Permalink
feat(kb): Disable knowledge selector if no KB found
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed Aug 7, 2024
1 parent 9165aeb commit b2a618e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/select/KnowledgeBasesSelector.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<template>
<q-select
v-model="selectedKnowledgeBases"
:disable="!knowledgeStore.isLoaded"
:disable="!knowledgeStore.isLoaded || knowledgeStore.knowledgeBases.length === 0"
:label="knowledgeStore.knowledgeBases.length === 0 ? 'No knowledge base found' : undefined"
:option-label="
(option: KnowledgeBase | string) =>
typeof option === 'string'
Expand Down

0 comments on commit b2a618e

Please sign in to comment.