Added unit to db and structs/types.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user