From edf244b01ff236380058f5e43dad0a50b367a021 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Wed, 26 Jul 2023 13:08:17 +0200 Subject: [PATCH] Bug 34418: DO NOT PUSH - example Try the other patch with this patch applied. Go to http://localhost:8081/cgi-bin/koha/erm/agreements/1/items/add Without the patch you get: E-resource management > Agreements > Show agreement > > Add item to train With this patch applied: E-resource management > Agreements > Show agreement > Add item to train --- .../intranet-tmpl/prog/js/vue/routes/erm.js | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/routes/erm.js b/koha-tmpl/intranet-tmpl/prog/js/vue/routes/erm.js index dbd78f57f66..a948db8c394 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/routes/erm.js +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/routes/erm.js @@ -61,6 +61,30 @@ export const routes = [ name: "AgreementsShow", component: markRaw(AgreementsShow), title: $__("Show agreement"), + children: [ + { + path: "items", + is_navigation_item: false, + children: [ + { + path: "add", + name: "TestChildTwo", + component: markRaw( + EHoldingsLocalTitlesFormAdd + ), + title: $__("Add item to train"), + }, + { + path: "add/:item_ids", + name: "TestChildThree", + component: markRaw( + EHoldingsLocalPackagesFormAdd + ), + title: $__("Add items to train"), + }, + ], + }, + ], }, { path: "add", -- 2.25.1