diff --git a/frontend/components/App/ScannerModal.vue b/frontend/components/App/ScannerModal.vue index 27cf9377..9d9e495e 100644 --- a/frontend/components/App/ScannerModal.vue +++ b/frontend/components/App/ScannerModal.vue @@ -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([]); const selectedSource = ref(null); diff --git a/frontend/components/Item/CreateModal.vue b/frontend/components/Item/CreateModal.vue index 5d718d6c..ec935f47 100644 --- a/frontend/components/Item/CreateModal.vue +++ b/frontend/components/Item/CreateModal.vue @@ -270,7 +270,7 @@ watch( () => activeDialog.value, async active => { - if (active === "create-item") { + if (active !== null && active.id === "create-item") { // needed since URL will be cleared in the next step => ParentId Selection should stay though subItemCreate.value = subItemCreateParam.value === "y"; let parentItemLocationId = null; diff --git a/frontend/components/Location/CreateModal.vue b/frontend/components/Location/CreateModal.vue index 2c493536..09f661fa 100644 --- a/frontend/components/Location/CreateModal.vue +++ b/frontend/components/Location/CreateModal.vue @@ -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; diff --git a/frontend/components/ui/dialog-provider/DialogProvider.vue b/frontend/components/ui/dialog-provider/DialogProvider.vue index c7513012..d767a921 100644 --- a/frontend/components/ui/dialog-provider/DialogProvider.vue +++ b/frontend/components/ui/dialog-provider/DialogProvider.vue @@ -1,19 +1,21 @@