This commit is contained in:
seb
2026-10-14 23:13:46 +02:00
parent c62834833d
commit eb4654dfbf
7 changed files with 174 additions and 26 deletions

View File

@@ -6,7 +6,7 @@ import Attachment from './Attachment';
export class AttachmentList extends PureComponent {
render() {
const { attachments, onRescan, onDelete, onClick, disabled, hasArticles } = this.props;
const { attachments, onRescan, onDelete, onClick, disabled, hasArticles, kind, docId } = this.props;
if (!Array.isArray(attachments) || attachments.length === 0) {
return null;
}
@@ -26,6 +26,8 @@ export class AttachmentList extends PureComponent {
<Attachment
key={attachment.id ?? index}
attachment={attachment}
kind={kind}
docId={docId}
onRescan={onRescan}
onDelete={onDelete}
onClick={onClick}