From b007ab3df179811486270161b725ea8f8e072743 Mon Sep 17 00:00:00 2001 From: Michael Wedl Date: Fri, 22 Dec 2023 06:39:41 +0100 Subject: [PATCH 1/2] Rework add finding button --- frontend/src/components/CreateFindingDialog.vue | 4 ++++ .../pages/projects/[projectId]/reporting.vue | 17 ++++++++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/CreateFindingDialog.vue b/frontend/src/components/CreateFindingDialog.vue index 1f1b156c7..5a26ef552 100644 --- a/frontend/src/components/CreateFindingDialog.vue +++ b/frontend/src/components/CreateFindingDialog.vue @@ -163,6 +163,10 @@ function onKeydown(event: KeyboardEvent) { searchInput.value = null; } } + +defineExpose({ + open: () => { dialogVisible.value = true }, +});