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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorList.vue (-3 / +3 lines)
Lines 2-8 Link Here
2
    <div v-if="!initialized">{{ $__("Loading") }}</div>
2
    <div v-if="!initialized">{{ $__("Loading") }}</div>
3
    <div v-else id="vendors_list">
3
    <div v-else id="vendors_list">
4
        <Toolbar>
4
        <Toolbar>
5
            <ButtonLink
5
            <ToolbarButton
6
                :to="{ name: 'VendorFormAdd' }"
6
                :to="{ name: 'VendorFormAdd' }"
7
                icon="plus"
7
                icon="plus"
8
                :title="$__('New vendor')"
8
                :title="$__('New vendor')"
Lines 28-34 Link Here
28
<script>
28
<script>
29
import flatPickr from "vue-flatpickr-component";
29
import flatPickr from "vue-flatpickr-component";
30
import Toolbar from "../Toolbar.vue";
30
import Toolbar from "../Toolbar.vue";
31
import ButtonLink from "../ButtonLink.vue";
31
import ToolbarButton from "../ToolbarButton.vue";
32
import { inject, ref } from "vue";
32
import { inject, ref } from "vue";
33
import { APIClient } from "../../fetch/api-client.js";
33
import { APIClient } from "../../fetch/api-client.js";
34
import { storeToRefs } from "pinia";
34
import { storeToRefs } from "pinia";
Lines 269-275 export default { Link Here
269
            ];
269
            ];
270
        },
270
        },
271
    },
271
    },
272
    components: { flatPickr, Toolbar, ButtonLink, KohaTable },
272
    components: { flatPickr, Toolbar, ToolbarButton, KohaTable },
273
    name: "VendorList",
273
    name: "VendorList",
274
    emits: ["select-vendor", "close"],
274
    emits: ["select-vendor", "close"],
275
};
275
};
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorShow.vue (-2 / +19 lines)
Lines 7-13 Link Here
7
                icon="plus"
7
                icon="plus"
8
                :title="$__('New vendor')"
8
                :title="$__('New vendor')"
9
            />
9
            />
10
            <ButtonLink
10
            <ToolbarButton
11
                :to="{
11
                :to="{
12
                    name: 'VendorFormAddEdit',
12
                    name: 'VendorFormAddEdit',
13
                    params: { vendor_id: vendor.id },
13
                    params: { vendor_id: vendor.id },
Lines 15-20 Link Here
15
                icon="pencil"
15
                icon="pencil"
16
                :title="$__('Edit vendor')"
16
                :title="$__('Edit vendor')"
17
            />
17
            />
18
            <ToolbarButton
19
                :to="{
20
                    path: '/cgi-bin/koha/acqui/basketheader.pl',
21
                    query: { booksellerid: vendor.id, op: 'add_form' },
22
                }"
23
                icon="plus"
24
                :title="$__('New basket')"
25
                callback="redirect"
26
            />
27
            <ToolbarButton
28
                :to="{
29
                    path: '/cgi-bin/koha/admin/aqcontract.pl',
30
                    query: { booksellerid: vendor.id, op: 'add_form' },
31
                }"
32
                icon="plus"
33
                :title="$__('New contract')"
34
                callback="redirect"
35
            />
18
            <ToolbarButton
36
            <ToolbarButton
19
                :to="{
37
                :to="{
20
                    path: '/cgi-bin/koha/acqui/parcels.pl',
38
                    path: '/cgi-bin/koha/acqui/parcels.pl',
21
- 

Return to bug 38010