Start adding ui for nutrition.
This commit is contained in:
1 parent
627564e8c6
commit
7986632dab
6 files changed
+124
-14
No files matched your search
@@ -4,6 +4,7 @@
|
||||
import { Variant } from "~/types/variant";
|
||||
import type {Unit} from "~/types/unit";
|
||||
import type {Label} from "~/types/label";
|
||||
import type {Nutritional} from "~/types/nutritional.ts";
|
||||
|
||||
let store = useLabelEditorStore();
|
||||
|
||||
@@ -33,7 +34,7 @@
|
||||
|
||||
const variant: Variant = new Variant(0, weight.value, ean.value, name.value,
|
||||
description.value, ingredients.value, unit.value, label.value,
|
||||
variant_description.value, topm_row.value);
|
||||
variant_description.value, topm_row.value, null);
|
||||
|
||||
await store.addVariant(variant);
|
||||
|
||||
|
||||
Reference in new issue
Block a user