From 8343c2b183320e6a05410884b3a27b242be00589 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 12 Aug 2024 07:36:42 +0100 Subject: [PATCH] Bug 37605: Convert dialog to modal markup This converts the vue Dialog component to use Boostrap Modal markup to increase consistency with the rest of Koha. --- .../prog/js/vue/components/Dialog.vue | 319 +++++++++++------- 1 file changed, 197 insertions(+), 122 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Dialog.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Dialog.vue index 960c3075c7f..d7e72716b05 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Dialog.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Dialog.vue @@ -1,75 +1,197 @@ @@ -77,6 +199,7 @@ import { inject } from "vue" import { storeToRefs } from "pinia" import flatPickr from "vue-flatpickr-component" + export default { data() { return { @@ -84,7 +207,7 @@ export default { } }, methods: { - submit: function (e) { + submit() { if ( this.confirmation.inputs && this.confirmation.inputs.filter( @@ -130,65 +253,17 @@ export default { -- 2.46.0