This commit is contained in:
seb
2026-09-25 07:27:37 +02:00
parent b331f8f535
commit a3db1742e7
17 changed files with 2273 additions and 371 deletions

View File

@@ -6,7 +6,7 @@ import Attachment from './Attachment';
export class AttachmentList extends PureComponent {
render() {
const { attachments, onRescan, onDelete, onClick, disabled } = this.props;
const { attachments, onRescan, onDelete, onClick, disabled, hasArticles } = this.props;
if (!Array.isArray(attachments) || attachments.length === 0) {
return null;
}
@@ -19,7 +19,7 @@ export class AttachmentList extends PureComponent {
fontWeight={600}
sx={{ mb: 1, display: 'block', textTransform: 'uppercase', letterSpacing: '0.05em' }}
>
Dateianhänge ({attachments.length})
Dateianhänge
</Typography>
<Stack direction="row" spacing={1.5} sx={{ flexWrap: 'wrap', gap: 1.5 }}>
{attachments.map((attachment, index) => (
@@ -30,6 +30,7 @@ export class AttachmentList extends PureComponent {
onDelete={onDelete}
onClick={onClick}
disabled={disabled}
hasArticles={hasArticles}
/>
))}
</Stack>