ProductBarcode: allow passing parameters to Dialog

This commit is contained in:
Crumb Owl
2025-07-06 20:48:56 +02:00
parent 0e1e5ae3f0
commit fc88df0ff0
7 changed files with 25 additions and 13 deletions

View File

@@ -54,7 +54,7 @@
watch(
() => activeDialog.value,
active => {
if (active === "create-location") {
if (active && active.id === "create-location") {
if (locationId.value) {
const found = locations.value.find(l => l.id === locationId.value);
form.parent = found || null;