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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/DropdownButtons.vue (+30 lines)
Line 0 Link Here
1
<template>
2
    <div class="btn-group">
3
        <a
4
            class="btn btn-default dropdown-toggle"
5
            data-bs-toggle="dropdown"
6
            href="#"
7
            ><i class="fa fa-plus"></i>{{ title }}</a
8
        >
9
        <ul class="dropdown-menu">
10
            <li v-for="(item, index) in items" :key="index">
11
                <ToolbarButton
12
                    :to="item.to"
13
                    :title="$__(item.title)"
14
                    :callback="item.callback"
15
                />
16
            </li>
17
        </ul>
18
    </div>
19
</template>
20
21
<script>
22
import ToolbarButton from "./ToolbarButton.vue";
23
24
export default {
25
    components: { ToolbarButton },
26
    props: ["items", "title"],
27
};
28
</script>
29
30
<style></style>
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorShow.vue (-5 / +25 lines)
Lines 2-11 Link Here
2
    <div v-if="!initialized">{{ $__("Loading") }}</div>
2
    <div v-if="!initialized">{{ $__("Loading") }}</div>
3
    <div v-else id="vendors_show">
3
    <div v-else id="vendors_show">
4
        <Toolbar>
4
        <Toolbar>
5
            <ButtonLink
5
            <DropdownButtons
6
                :to="{ name: 'VendorFormAdd' }"
6
                :items="[
7
                icon="plus"
7
                    {
8
                :title="$__('New vendor')"
8
                        to: {
9
                            path: '/cgi-bin/koha/acqui/basketheader.pl',
10
                            query: { booksellerid: vendor.id, op: 'add_form' },
11
                        },
12
                        title: 'Basket',
13
                        callback: 'redirect',
14
                    },
15
                    {
16
                        to: {
17
                            path: '/cgi-bin/koha/admin/aqcontract.pl',
18
                            query: { booksellerid: vendor.id, op: 'add_form' },
19
                        },
20
                        title: 'Contract',
21
                        callback: 'redirect',
22
                    },
23
                    {
24
                        to: { name: 'VendorFormAdd' },
25
                        title: 'Vendor',
26
                    },
27
                ]"
28
                :title="$__('New')"
9
            />
29
            />
10
            <ToolbarButton
30
            <ToolbarButton
11
                :to="{
31
                :to="{
Lines 91-96 import VendorContacts from "./VendorContacts.vue"; Link Here
91
import VendorSubscriptions from "./VendorSubscriptions.vue";
111
import VendorSubscriptions from "./VendorSubscriptions.vue";
92
import VendorContracts from "./VendorContracts.vue";
112
import VendorContracts from "./VendorContracts.vue";
93
import VendorBaskets from "./VendorBaskets.vue";
113
import VendorBaskets from "./VendorBaskets.vue";
114
import DropdownButtons from "../DropdownButtons.vue";
94
115
95
export default {
116
export default {
96
    setup() {
117
    setup() {
97
- 

Return to bug 38010