From 6410b550b2b60b7bf258e6111ca5dc847046979c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hornych?= Date: Wed, 16 Oct 2024 21:54:25 +0200 Subject: [PATCH] feat(#117): forbid multiple ending jfr recording --- src/modules/jfr-viewer/components/EndRecordingButton.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/modules/jfr-viewer/components/EndRecordingButton.vue b/src/modules/jfr-viewer/components/EndRecordingButton.vue index 0ce3afb..74e8117 100644 --- a/src/modules/jfr-viewer/components/EndRecordingButton.vue +++ b/src/modules/jfr-viewer/components/EndRecordingButton.vue @@ -18,18 +18,25 @@ const emit = defineEmits<{ }>() const showEndRecordingDialog = ref(false) +const endRequested = ref(false) + +function onEnd(): void { + endRequested.value = true + emit('end') +}