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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Islands/VendorMenu.vue (-1 / +1 lines)
Lines 109-115 export default { Link Here
109
        };
109
        };
110
    },
110
    },
111
    data() {
111
    data() {
112
        const vendorId = this.vendorid ? this.vendorid : this.params.vendor_id;
112
        const vendorId = this.vendorid ? this.vendorid : this.params.id;
113
        return {
113
        return {
114
            vendorId,
114
            vendorId,
115
        };
115
        };
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/LeftMenu.vue (-1 / +1 lines)
Lines 1-5 Link Here
1
<template>
1
<template>
2
    <aside>
2
    <aside v-if="leftNavigation !== 'none'">
3
        <div id="navmenu">
3
        <div id="navmenu">
4
            <div id="navmenulist">
4
            <div id="navmenulist">
5
                <VendorMenu v-if="leftNavigation === 'VendorMenu'" />
5
                <VendorMenu v-if="leftNavigation === 'VendorMenu'" />
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorFormAdd.vue (-2 / +2 lines)
Lines 70-77 export default { Link Here
70
    },
70
    },
71
    beforeRouteEnter(to, from, next) {
71
    beforeRouteEnter(to, from, next) {
72
        next(vm => {
72
        next(vm => {
73
            if (to.params.vendor_id) {
73
            if (to.params.id) {
74
                vm.getVendor(to.params.vendor_id);
74
                vm.getVendor(to.params.id);
75
            } else {
75
            } else {
76
                vm.initialized = true;
76
                vm.initialized = true;
77
            }
77
            }
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorShow.vue (-1 / +1 lines)
Lines 120-126 export default { Link Here
120
    },
120
    },
121
    beforeRouteEnter(to, from, next) {
121
    beforeRouteEnter(to, from, next) {
122
        next(vm => {
122
        next(vm => {
123
            vm.getVendor(to.params.vendor_id);
123
            vm.getVendor(to.params.id);
124
        });
124
        });
125
    },
125
    },
126
    methods: {
126
    methods: {
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/routes/acquisitions.js (-3 / +4 lines)
Lines 33-39 export const routes = [ Link Here
33
                        alternateLeftMenu: "AcquisitionsMenu",
33
                        alternateLeftMenu: "AcquisitionsMenu",
34
                    },
34
                    },
35
                    {
35
                    {
36
                        path: ":vendor_id",
36
                        path: ":id",
37
                        name: "VendorShow",
37
                        name: "VendorShow",
38
                        component: markRaw(VendorShow),
38
                        component: markRaw(VendorShow),
39
                        title: $__("Show vendor"),
39
                        title: $__("Show vendor"),
Lines 44-55 export const routes = [ Link Here
44
                        name: "VendorFormAdd",
44
                        name: "VendorFormAdd",
45
                        component: markRaw(VendorFormAdd),
45
                        component: markRaw(VendorFormAdd),
46
                        title: $__("Add vendor"),
46
                        title: $__("Add vendor"),
47
                        alternateLeftMenu: "none",
47
                    },
48
                    },
48
                    {
49
                    {
49
                        path: "edit/:vendor_id",
50
                        path: "edit/:id",
50
                        name: "VendorFormAddEdit",
51
                        name: "VendorFormAddEdit",
51
                        component: markRaw(VendorFormAdd),
52
                        component: markRaw(VendorFormAdd),
52
                        title: $__("Edit vendor"),
53
                        title: $__("Edit vendor"),
54
                        alternateLeftMenu: "VendorMenu",
53
                    },
55
                    },
54
                ],
56
                ],
55
            },
57
            },
56
- 

Return to bug 38010