This commit is contained in:
seb
2026-10-09 16:44:18 +02:00
parent 56274ecb1d
commit 5e62be468f
9 changed files with 175 additions and 71 deletions

View File

@@ -98,7 +98,7 @@ class ArtikelMarkenPage extends PureComponent {
this.setState({ busyKey: 'new' });
try {
const row = await brandAutomat.actions.upsert({ name });
const row = await brandAutomat.actions.create({ name });
if (this._cancelled) return;
this.setState({ newName: '', busyKey: null });
enqueueSnackbar(`Marke „${row.name || name}" angelegt.`, { variant: 'success' });
@@ -115,7 +115,7 @@ class ArtikelMarkenPage extends PureComponent {
this.setState({ busyKey: brand.id });
try {
await brandAutomat.actions.upsert({ name: nextName });
await brandAutomat.actions.rename(brand.id, { name: nextName });
if (this._cancelled) return;
this.setState({ busyKey: null });
enqueueSnackbar('Marke gespeichert.', { variant: 'success' });