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

@@ -57,7 +57,7 @@
const { t } = useI18n();
const { activeDialog, closeDialog } = useDialog();
const open = computed(() => activeDialog.value === "scanner");
const open = computed(() => activeDialog.value && activeDialog.value.id === "scanner");
const sources = ref<MediaDeviceInfo[]>([]);
const selectedSource = ref<string | null>(null);