This commit is contained in:
seb
2026-10-24 06:43:56 +02:00
parent 3801ac4e52
commit eeb4b92a79
4 changed files with 206 additions and 12 deletions

View File

@@ -363,6 +363,15 @@ class ArtikelKategorienPage extends PureComponent {
}
};
handleGenerateCategoryMatrix = async (cat) => {
try {
await categoryAutomat.actions.generateCategoryImage({ categoryId: cat.id });
enqueueSnackbar('Matrix-Bild erstellt.', { variant: 'success' });
} catch (err) {
notifyError(err);
}
};
render() {
const {
companyId,
@@ -500,6 +509,7 @@ class ArtikelKategorienPage extends PureComponent {
void categoryAutomat.actions.deleteCategoryImage(item.id)
.catch(notifyError);
},
onPhotoMatrix: () => this.handleGenerateCategoryMatrix(item),
onDelete: () => this.handleDeleteCategory(item),
onDeleteRecursive: () => this.handleDeleteCategoryRecursive(item),
nameInput: (