feat: add filter button to DocumentList and FAQList components for enhanced user interaction
This commit is contained in:
@@ -369,6 +369,16 @@ export function DocumentList({ knowledgeBaseId, onActionStateChange }: DocumentL
|
|||||||
emptyText={t("knowledge.emptyStatus")}
|
emptyText={t("knowledge.emptyStatus")}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<Button
|
||||||
|
variant="outline"
|
||||||
|
size="sm"
|
||||||
|
className="h-8 shrink-0"
|
||||||
|
onClick={applyFilters}
|
||||||
|
disabled={loading}
|
||||||
|
>
|
||||||
|
<SearchIcon className="size-3.5" />
|
||||||
|
{t("knowledge.query")}
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="min-h-0 flex-1">
|
<div className="min-h-0 flex-1">
|
||||||
|
|||||||
@@ -315,6 +315,16 @@ export function FAQList({
|
|||||||
emptyText={t("knowledge.emptyStatus")}
|
emptyText={t("knowledge.emptyStatus")}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<Button
|
||||||
|
variant="outline"
|
||||||
|
size="sm"
|
||||||
|
className="h-8 shrink-0"
|
||||||
|
onClick={applyFilters}
|
||||||
|
disabled={loading}
|
||||||
|
>
|
||||||
|
<SearchIcon className="size-3.5" />
|
||||||
|
{t("knowledge.query")}
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="min-h-0 flex-1">
|
<div className="min-h-0 flex-1">
|
||||||
|
|||||||
Reference in New Issue
Block a user