löschen
Build and Push Multi-Platform Images / build-and-push (push) Successful in 21s

This commit is contained in:
2026-05-21 12:59:46 +02:00
parent 792733952a
commit e9d42ce172
@@ -1194,10 +1194,30 @@ export default function InboxDetailPage() {
items: [
{ key: 'save', label: 'Speichern', icon: <SaveOutlined /> },
{ key: 'email', label: 'Als E-Mail-Anhang versenden', icon: <MailOutlined /> },
{ type: 'divider' },
{ key: 'delete', label: 'Dokument löschen', icon: <DeleteOutlined />, danger: true },
] as MenuProps['items'],
onClick: ({ key }) => {
if (key === 'save') setDownloadDialogOpen(true);
if (key === 'email') setEmailDialogOpen(true);
if (key === 'delete') {
Modal.confirm({
title: 'Dokument löschen?',
content: 'Datei und Datenbank-Eintrag werden dauerhaft entfernt.',
okText: 'Löschen',
okButtonProps: { danger: true },
cancelText: 'Abbrechen',
onOk: async () => {
try {
await inboxApi.remove(file.id);
message.success('Dokument gelöscht');
navigate('/inbox');
} catch {
message.error('Löschen fehlgeschlagen');
}
},
});
}
},
}}
>