View | Details | Raw Unified | Return to bug 38010
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/modules/vendors.ts (-4 / +4 lines)
Lines 17-37 library.add(faPlus, faMinus, faPencil, faTrash, faSpinner); Link Here
17
17
18
import App from "../components/Vendors/Main.vue";
18
import App from "../components/Vendors/Main.vue";
19
19
20
import { routes as routesDef } from "../routes/vendors";
20
import { routes as routesDef } from "../routes/acquisitions";
21
21
22
import { useMainStore } from "../stores/main";
22
import { useMainStore } from "../stores/main";
23
import { useVendorStore } from "../stores/vendors";
23
import { useVendorStore } from "../stores/vendors";
24
import { useAVStore } from "../stores/authorisedValues/authorised-values";
25
import { useNavigationStore } from "../stores/navigation";
24
import { useNavigationStore } from "../stores/navigation";
26
import { usePermissionsStore } from "../stores/permissions";
25
import { usePermissionsStore } from "../stores/permissions";
26
import { useAVStore } from "../stores/authorised-values";
27
import i18n from "../i18n";
27
import i18n from "../i18n";
28
28
29
const pinia = createPinia();
29
const pinia = createPinia();
30
30
31
const mainStore = useMainStore(pinia);
31
const mainStore = useMainStore(pinia);
32
const AVStore = useAVStore(pinia);
33
const navigationStore = useNavigationStore(pinia);
32
const navigationStore = useNavigationStore(pinia);
34
const permissionsStore = usePermissionsStore(pinia);
33
const permissionsStore = usePermissionsStore(pinia);
34
const AVStore = useAVStore(pinia);
35
const routes = navigationStore.setRoutes(routesDef);
35
const routes = navigationStore.setRoutes(routesDef);
36
36
37
const router = createRouter({
37
const router = createRouter({
Lines 52-60 const rootComponent = app Link Here
52
app.config.unwrapInjectedRef = true;
52
app.config.unwrapInjectedRef = true;
53
app.provide("vendorStore", useVendorStore(pinia));
53
app.provide("vendorStore", useVendorStore(pinia));
54
app.provide("mainStore", mainStore);
54
app.provide("mainStore", mainStore);
55
app.provide("AVStore", AVStore);
56
app.provide("navigationStore", navigationStore);
55
app.provide("navigationStore", navigationStore);
57
app.provide("permissionsStore", permissionsStore);
56
app.provide("permissionsStore", permissionsStore);
57
app.provide("AVStore", AVStore);
58
58
59
app.mount("#__vendors");
59
app.mount("#__vendors");
60
60
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/routes/vendors.js (-1 / +1 lines)
Lines 11-17 export const routes = [ Link Here
11
        path: "/cgi-bin/koha/acqui/booksellers.pl",
11
        path: "/cgi-bin/koha/acqui/booksellers.pl",
12
        is_default: true,
12
        is_default: true,
13
        is_base: true,
13
        is_base: true,
14
        title: $__("Vendor management"),
14
        title: $__("Acquisitions"),
15
        children: [
15
        children: [
16
            {
16
            {
17
                path: "",
17
                path: "",
(-)a/rspack.config.js (-2 / +1 lines)
Lines 13-19 module.exports = { Link Here
13
            "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/preservation.ts",
13
            "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/preservation.ts",
14
        "admin/record_sources":
14
        "admin/record_sources":
15
            "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/admin/record_sources.ts",
15
            "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/admin/record_sources.ts",
16
        vendors: "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/vendors.ts",
16
        acquisitions: "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/acquisitions.ts",
17
    },
17
    },
18
    output: {
18
    output: {
19
        filename: "[name].js",
19
        filename: "[name].js",
20
- 

Return to bug 38010