diff --git a/ui/src/api/document.ts b/ui/src/api/document.ts index 2080c562e..4e16522cf 100644 --- a/ui/src/api/document.ts +++ b/ui/src/api/document.ts @@ -121,6 +121,28 @@ const getDocumentDetail: (dataset_id: string, document_id: string) => Promise +) => Promise> = (dataset_id, document_id, loading) => { + return put( + `${prefix}/${dataset_id}/document/${document_id}/refresh`, + undefined, + undefined, + loading + ) +} + export default { postSplitDocument, getDocument, @@ -129,5 +151,6 @@ export default { putDocument, delDocument, getDocumentDetail, - listSplitPattern + listSplitPattern, + putDocumentRefresh } diff --git a/ui/src/components/ai-chat/LogOperationButton.vue b/ui/src/components/ai-chat/LogOperationButton.vue index 1c2dbaec3..ebc65e06c 100644 --- a/ui/src/components/ai-chat/LogOperationButton.vue +++ b/ui/src/components/ai-chat/LogOperationButton.vue @@ -6,20 +6,27 @@
+ + + + + + + - - - + + + - + diff --git a/ui/src/components/icons/index.ts b/ui/src/components/icons/index.ts index ce544b1b0..3b5f8c0a7 100644 --- a/ui/src/components/icons/index.ts +++ b/ui/src/components/icons/index.ts @@ -427,11 +427,11 @@ export const iconMap: any = { [ h('path', { d: 'M2.00497 14.6608H2.00518C2.00511 14.6609 2.00504 14.6609 2.00497 14.6608H0.666612C0.666097 14.6874 0.666707 5.33317 0.666612 5.29087H2.00518C2.00006 5.33305 1.98026 14.6344 2.00497 14.6608Z', - fill: '#FFC60A' + fill: 'currentColor' }), h('path', { d: 'M12.5717 5.28984H9.70096C10.1486 4.45673 10.3724 3.78809 10.3724 3.28394C10.3724 1.94718 9.40089 1.14037 8.5893 0.770777C8.04824 0.52438 7.5406 0.753754 7.35254 1.05296L4.5741 5.00545C4.44877 5.18374 4.24449 5.28984 4.02656 5.28984H3.33882C3.154 5.28984 3.00418 5.43966 3.00418 5.62448V14.3319C3.00418 14.5167 3.154 14.6665 3.33882 14.6665H11.1995C11.8409 14.6665 12.4029 14.2423 12.5717 13.6308L14.5687 8.37353C15.0274 7.05264 14.5687 5.28984 12.5717 5.28984Z', - fill: '#FFC60A' + fill: 'currentColor' }) ] ) diff --git a/ui/src/layout/components/breadcrumb/index.vue b/ui/src/layout/components/breadcrumb/index.vue index 996461402..0f3f01c02 100644 --- a/ui/src/layout/components/breadcrumb/index.vue +++ b/ui/src/layout/components/breadcrumb/index.vue @@ -1,11 +1,15 @@