-
Produkte
+
{titel}
- {sichtbar.length} Produkte{typ ? (typ === "food" ? " · Lebensmittel" : " · Gegenstände") : " im Katalog"}
+ {sichtbar.length} {fixedType ? titel : `Produkte${activeTyp ? (activeTyp === "food" ? " · Lebensmittel" : " · Gegenstände") : " im Katalog"}`}
{isAdmin && (
@@ -108,14 +113,16 @@ export default function Products() {
{error &&
{error}
}
-
-
-
-
-
+ {!fixedType && (
+
+
+
+
+
+ )}
- p.id} empty="Keine Produkte gefunden." />
diff --git a/web/src/pages/Units.jsx b/web/src/pages/Units.jsx
index cecce7f..806dd29 100644
--- a/web/src/pages/Units.jsx
+++ b/web/src/pages/Units.jsx
@@ -67,7 +67,7 @@ export default function Units() {
{ key: "factor", header: "Faktor", width: 150, align: "num", sortValue: (u) => u.factor,
filterText: (u) => `${fmt(u.factor)} ${baseUnitOfKind[u.kind]}`,
render: (u) => `${fmt(u.factor)} ${baseUnitOfKind[u.kind]}` },
- { key: "actions", header: "", fixed: true, width: 56, align: "num",
+ { key: "actions", header: "", label: "Aktionen", fixed: true, width: 56, align: "num",
render: (u) => (!u.is_builtin && (