From 93d21ff0811eb2ec99a5b1526f58d86916ba4515 Mon Sep 17 00:00:00 2001 From: Jason Wheeler Date: Tue, 4 Apr 2023 12:07:26 -0400 Subject: [PATCH] modal seems to be working, needs more testing --- src/digital-components/modal/modal.vue | 6 ++-- src/layouts/z-test-page-jg/z-test-page-jg.vue | 35 +++++++++++++------ 2 files changed, 28 insertions(+), 13 deletions(-) diff --git a/src/digital-components/modal/modal.vue b/src/digital-components/modal/modal.vue index ba7e60eb..e13f4fcd 100644 --- a/src/digital-components/modal/modal.vue +++ b/src/digital-components/modal/modal.vue @@ -48,6 +48,7 @@ import { useForm } from "vee-validate"; export default { name: "modal", props: { + modalId: String, headerText: String, footerButtonText: String, onModalOpenedCallback: { @@ -57,8 +58,8 @@ export default { type: Function, }, }, - setup() { - const modalId = `modal-${crypto.randomUUID()}`; + setup(props) { + const modalId = props.modalId ? props.modalId : `modal-${crypto.randomUUID()}`; const { meta, validate, resetForm } = useForm(); @@ -113,6 +114,7 @@ export default {