Fix but with units

main v0.0.6
DustyP 4 years ago
parent 9ebb0c8c7d
commit 48fe3ce96b

@ -126,13 +126,13 @@ export default {
size: null, size: null,
unit: null, unit: null,
units: [ units: [
"Teaspoon", { value: 0, text: "Teaspoon" },
"Tablespoon", { value: 1, text: "Tablespoon" },
"Cup", { value: 2, text: "Cup" },
"Ounce", { value: 3, text: "Ounce" },
"Gram", { value: 4, text: "Gram" },
"Pound", { value: 5, text: "Pound" },
"Individual", { value: 6, text: "Individual" },
], ],
barcode: "", barcode: "",
barcodeReader: "none", barcodeReader: "none",
@ -191,7 +191,7 @@ export default {
name: this.name, name: this.name,
description: this.description, description: this.description,
size: this.size, size: this.size,
unit: this.unit, unit: this.unit.value,
location: {"id": this.location}, location: {"id": this.location},
barcode: this.barcode, barcode: this.barcode,
}; };

Loading…
Cancel
Save