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 407c560dd5..9b3496b09d 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 @@
@@ -522,7 +522,7 @@ export default {
)
},
selectTrainForCopy(train_item_id) {
- $("#copy_item_to_train").show()
+ $("#copy_item_to_train").modal("show")
this.train_item_id_to_copy = train_item_id
},
copyItem(event) {
@@ -537,7 +537,7 @@ export default {
.then(
success => {
this.setMessage(this.$__("Item copied successfully."))
- this.closeModal()
+ $("#copy_item_to_train").modal("hide")
},
error => {
this.setWarning(
@@ -548,9 +548,6 @@ export default {
}
)
},
- closeModal() {
- $("#copy_item_to_train").hide()
- },
clearAll() {
this.selected_items = []
if (this.item_table.display) {