From f05f8d40fc3a9d5c4ded53301bd908c1460b5bce Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Thu, 19 Sep 2024 10:05:56 +0000 Subject: [PATCH] Bug 38010: Rename routes to acquisitions This patch renames the app from vendors to acquisitions to allow further acquisitions pages to be migrated --- .../prog/js/vue/modules/{vendors.ts => acquisitions.ts} | 8 ++++---- .../prog/js/vue/routes/{vendors.js => acquisitions.js} | 2 +- rspack.config.js | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) rename koha-tmpl/intranet-tmpl/prog/js/vue/modules/{vendors.ts => acquisitions.ts} (93%) rename koha-tmpl/intranet-tmpl/prog/js/vue/routes/{vendors.js => acquisitions.js} (96%) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/modules/vendors.ts b/koha-tmpl/intranet-tmpl/prog/js/vue/modules/acquisitions.ts similarity index 93% rename from koha-tmpl/intranet-tmpl/prog/js/vue/modules/vendors.ts rename to koha-tmpl/intranet-tmpl/prog/js/vue/modules/acquisitions.ts index 99edd35a198..4305250a8fa 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/modules/vendors.ts +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/modules/acquisitions.ts @@ -17,21 +17,21 @@ library.add(faPlus, faMinus, faPencil, faTrash, faSpinner); import App from "../components/Vendors/Main.vue"; -import { routes as routesDef } from "../routes/vendors"; +import { routes as routesDef } from "../routes/acquisitions"; import { useMainStore } from "../stores/main"; import { useVendorStore } from "../stores/vendors"; -import { useAVStore } from "../stores/authorisedValues/authorised-values"; import { useNavigationStore } from "../stores/navigation"; import { usePermissionsStore } from "../stores/permissions"; +import { useAVStore } from "../stores/authorised-values"; import i18n from "../i18n"; const pinia = createPinia(); const mainStore = useMainStore(pinia); -const AVStore = useAVStore(pinia); const navigationStore = useNavigationStore(pinia); const permissionsStore = usePermissionsStore(pinia); +const AVStore = useAVStore(pinia); const routes = navigationStore.setRoutes(routesDef); const router = createRouter({ @@ -52,9 +52,9 @@ const rootComponent = app app.config.unwrapInjectedRef = true; app.provide("vendorStore", useVendorStore(pinia)); app.provide("mainStore", mainStore); -app.provide("AVStore", AVStore); app.provide("navigationStore", navigationStore); app.provide("permissionsStore", permissionsStore); +app.provide("AVStore", AVStore); app.mount("#__vendors"); diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/routes/vendors.js b/koha-tmpl/intranet-tmpl/prog/js/vue/routes/acquisitions.js similarity index 96% rename from koha-tmpl/intranet-tmpl/prog/js/vue/routes/vendors.js rename to koha-tmpl/intranet-tmpl/prog/js/vue/routes/acquisitions.js index bfaffca3fdc..0c9dc362ac1 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/routes/vendors.js +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/routes/acquisitions.js @@ -11,7 +11,7 @@ export const routes = [ path: "/cgi-bin/koha/acqui/booksellers.pl", is_default: true, is_base: true, - title: $__("Vendor management"), + title: $__("Acquisitions"), children: [ { path: "", diff --git a/rspack.config.js b/rspack.config.js index 3fa96ce5f91..267c91f4b2b 100644 --- a/rspack.config.js +++ b/rspack.config.js @@ -13,7 +13,7 @@ module.exports = { "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/preservation.ts", "admin/record_sources": "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/admin/record_sources.ts", - vendors: "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/vendors.ts", + acquisitions: "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/acquisitions.ts", }, output: { filename: "[name].js", -- 2.39.3 (Apple Git-146)