parent
68769f4bbc
commit
3f1a10250f
|
|
@ -226,7 +226,7 @@ const DeleteDocStoreDialog = ({ show, dialogProps, onCancel, onDelete }) => {
|
||||||
<Button onClick={onCancel} color='primary'>
|
<Button onClick={onCancel} color='primary'>
|
||||||
Cancel
|
Cancel
|
||||||
</Button>
|
</Button>
|
||||||
<Button variant='contained' onClick={() => onDelete(dialogProps.type, removeFromVS)} color='error'>
|
<Button variant='contained' onClick={() => onDelete(dialogProps.type, dialogProps.file, removeFromVS)} color='error'>
|
||||||
Delete
|
Delete
|
||||||
</Button>
|
</Button>
|
||||||
</DialogActions>
|
</DialogActions>
|
||||||
|
|
|
||||||
|
|
@ -184,8 +184,9 @@ const DocumentStoreDetails = () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const onDocStoreDelete = async (type, removeFromVectorStore) => {
|
const onDocStoreDelete = async (type, file, removeFromVectorStore) => {
|
||||||
setBackdropLoading(true)
|
setBackdropLoading(true)
|
||||||
|
setShowDeleteDocStoreDialog(false)
|
||||||
if (type === 'STORE') {
|
if (type === 'STORE') {
|
||||||
if (removeFromVectorStore) {
|
if (removeFromVectorStore) {
|
||||||
await deleteVectorStoreDataFromStore(storeId)
|
await deleteVectorStoreDataFromStore(storeId)
|
||||||
|
|
@ -272,7 +273,8 @@ const DocumentStoreDetails = () => {
|
||||||
description: `Delete Loader ${file.loaderName} ? This will delete all the associated document chunks.`,
|
description: `Delete Loader ${file.loaderName} ? This will delete all the associated document chunks.`,
|
||||||
vectorStoreConfig,
|
vectorStoreConfig,
|
||||||
recordManagerConfig,
|
recordManagerConfig,
|
||||||
type: 'LOADER'
|
type: 'LOADER',
|
||||||
|
file
|
||||||
}
|
}
|
||||||
|
|
||||||
setDeleteDocStoreDialogProps(props)
|
setDeleteDocStoreDialogProps(props)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue