mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-21 21:33:02 +01:00
ProductBarcode: allow passing parameters to Dialog
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user