Forgot to save file

This commit is contained in:
Leah Schumann 2023-02-08 13:34:14 -05:00
parent 7db466fc60
commit d0842d6713

View file

@ -42,11 +42,11 @@
<script> <script>
import buttonMain from "@/ux-components/button-main/button-main"; import buttonMain from "@/ux-components/button-main/button-main";
import { Modal } from "bootstrap"; import { Modal } from "bootstrap";
import { checkPropertyChange } from "json-schema";
export default { export default {
name: "modal", name: "modal",
props: { props: {
modalId: String,
headerText: String, headerText: String,
footerButtonText: String, footerButtonText: String,
modalForm: { modalForm: {
@ -56,6 +56,11 @@ export default {
type: Function, type: Function,
}, },
}, },
setup() {
const modalId = `modal-${crypto.randomUUID()}`;
return modalId;
},
methods: { methods: {
async validateAndEmit() { async validateAndEmit() {
if (this.modalForm) { if (this.modalForm) {