From 5e2302579741fcbebbf2bc37559a0887f2f2cb81 Mon Sep 17 00:00:00 2001 From: Paul Derscheid Date: Tue, 17 Sep 2024 13:27:57 +0000 Subject: [PATCH] Bug 37812: Prevent non-functional close buttons by using vue event handlers Signed-off-by: David Nind Signed-off-by: Martin Renvoize --- .../prog/js/vue/components/Preservation/TrainsShow.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsShow.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsShow.vue index d54057263db..407c560dd5b 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsShow.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsShow.vue @@ -16,7 +16,7 @@ @@ -60,7 +60,7 @@ @@ -537,7 +537,7 @@ export default { .then( success => { this.setMessage(this.$__("Item copied successfully.")) - $("#copy_item_to_train").hide() + this.closeModal() }, error => { this.setWarning( @@ -548,6 +548,9 @@ export default { } ) }, + closeModal() { + $("#copy_item_to_train").hide() + }, clearAll() { this.selected_items = [] if (this.item_table.display) { -- 2.46.0