mirror of https://github.com/msgbyte/tailchat
feat(admin): add file delete action which delete minio file also and allow fuzzy match of objectName
parent
17464b0c6f
commit
c98dc4714d
@ -0,0 +1,19 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { createTextField, ListTable } from 'tushan';
|
||||||
|
import { fileFields } from '../fields';
|
||||||
|
|
||||||
|
export const FileList: React.FC = React.memo(() => {
|
||||||
|
return (
|
||||||
|
<ListTable
|
||||||
|
filter={[
|
||||||
|
createTextField('q', {
|
||||||
|
label: 'Search',
|
||||||
|
}),
|
||||||
|
]}
|
||||||
|
fields={fileFields}
|
||||||
|
action={{ detail: true, delete: true }}
|
||||||
|
batchAction={{ delete: true }}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
});
|
||||||
|
FileList.displayName = 'FileList';
|
Loading…
Reference in New Issue