From 000b65d4dbc1497575e2dcd3f963c81dbbb12720 Mon Sep 17 00:00:00 2001 From: Favour Olayinka Date: Mon, 29 Jan 2024 21:15:16 +0100 Subject: [PATCH] Form draft warning (#287) * feat: add warning to draft form preview button * warning modal component * feat: use notification for draft form warning * fix: remove unused variable * fix: remove unused variable --------- Co-authored-by: Julien Nahum --- .../components/pages/forms/show/ExtraMenu.vue | 25 +++++++++++++++++-- client/pages/forms/[slug]/show.vue | 21 +++++++++++++++- 2 files changed, 43 insertions(+), 3 deletions(-) diff --git a/client/components/pages/forms/show/ExtraMenu.vue b/client/components/pages/forms/show/ExtraMenu.vue index c1ca83b..af4b9cd 100644 --- a/client/components/pages/forms/show/ExtraMenu.vue +++ b/client/components/pages/forms/show/ExtraMenu.vue @@ -24,7 +24,25 @@ - + + + + + View form + + + @@ -133,7 +151,6 @@ - @@ -185,4 +202,8 @@ const deleteForm = () => { loadingDelete.value = false }) } + +const showDraftFormWarningNotification = () => { + useAlert().warning('This form is currently in Draft mode and is not publicly accessible, You can change the form status on the edit form page.') +} diff --git a/client/pages/forms/[slug]/show.vue b/client/pages/forms/[slug]/show.vue index 1ba1340..deaba9b 100644 --- a/client/pages/forms/[slug]/show.vue +++ b/client/pages/forms/[slug]/show.vue @@ -22,7 +22,22 @@
- +