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:
@@ -12,7 +12,7 @@
|
||||
|
||||
const { closeDialog, activeDialog } = useDialog();
|
||||
|
||||
const isOpen = computed(() => activeDialog.value === props.dialogId);
|
||||
const isOpen = computed(() => activeDialog.value !== null && activeDialog.value.id === props.dialogId);
|
||||
const onOpenChange = (open: boolean) => {
|
||||
if (!open) closeDialog(props.dialogId);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user