Added unit to db and structs/types.

This commit is contained in:
2026-01-26 22:09:32 +01:00
parent 7879f69255
commit 8a27639aad
14 changed files with 243 additions and 60 deletions
+12 -2
View File
@@ -4,6 +4,7 @@ import {NotificationMessage} from "~/types/notificationMessage";
import type {RuntimeConfig} from "nuxt/schema";
import {Origin} from "~/types/origin";
import type {Variant} from "~/types/variant";
import {Unit} from "~/types/unit";
interface State {
config: RuntimeConfig,
@@ -21,6 +22,7 @@ interface State {
articleEdit: Article | null,
origins: Array<Origin>,
units: Array<Unit>,
}
export const useLabelEditorStore = defineStore('label_editor_store', {
@@ -42,8 +44,16 @@ export const useLabelEditorStore = defineStore('label_editor_store', {
origins: [
Origin.EU,
Origin.NonEU,
Origin.EUnonEU
]
Origin.EUnonEU,
],
units: [
Unit.G,
Unit.Kg,
Unit.Ml,
Unit.L,
Unit.Stk,
],
}),
actions: {
// Notification