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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorDetails.vue (-3 / +11 lines)
Lines 45-53 Link Here
45
            </li>
45
            </li>
46
            <li v-if="vendor.url">
46
            <li v-if="vendor.url">
47
                <label>{{ $__("Website") }}:</label>
47
                <label>{{ $__("Website") }}:</label>
48
                <span>
48
                <ExternalLinkButton
49
                    {{ vendor.url }}
49
                    :to="{
50
                </span>
50
                        path: vendor.url,
51
                    }"
52
                    class=""
53
                    :title="vendor.url"
54
                />
51
            </li>
55
            </li>
52
            <li v-if="vendor.accountnumber">
56
            <li v-if="vendor.accountnumber">
53
                <label>{{ $__("Account number") }}:</label>
57
                <label>{{ $__("Account number") }}:</label>
Lines 163-168 Link Here
163
<script>
167
<script>
164
import { inject } from "vue"
168
import { inject } from "vue"
165
import { storeToRefs } from "pinia"
169
import { storeToRefs } from "pinia"
170
import ExternalLinkButton from "../ExternalLinkButton.vue"
166
171
167
export default {
172
export default {
168
    props: {
173
    props: {
Lines 195-200 export default { Link Here
195
            this.vendor.aliases.splice(this.vendor.aliases.indexOf(e.alias), 1)
200
            this.vendor.aliases.splice(this.vendor.aliases.indexOf(e.alias), 1)
196
        },
201
        },
197
    },
202
    },
203
    components: {
204
        ExternalLinkButton,
205
    },
198
}
206
}
199
</script>
207
</script>
200
208
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorInterfaces.vue (-3 / +11 lines)
Lines 13-21 Link Here
13
            </li>
13
            </li>
14
            <li v-if="vi.uri">
14
            <li v-if="vi.uri">
15
                <label>{{ $__("URI") }}:</label>
15
                <label>{{ $__("URI") }}:</label>
16
                <span>
16
                <ExternalLinkButton
17
                    <a :href="vi.uri" target="_blank">{{ vi.uri }}</a>
17
                    :to="{
18
                </span>
18
                        path: vi.uri,
19
                    }"
20
                    class=""
21
                    :title="vi.uri"
22
                />
19
            </li>
23
            </li>
20
            <li v-if="vi.login">
24
            <li v-if="vi.login">
21
                <label>{{ $__("Login") }}:</label>
25
                <label>{{ $__("Login") }}:</label>
Lines 137-142 Link Here
137
<script>
141
<script>
138
import { inject } from "vue"
142
import { inject } from "vue"
139
import { storeToRefs } from "pinia"
143
import { storeToRefs } from "pinia"
144
import ExternalLinkButton from "../ExternalLinkButton.vue"
140
145
141
export default {
146
export default {
142
    props: {
147
    props: {
Lines 167-172 export default { Link Here
167
            this.vendor.interfaces.splice(interfaceIndex, 1)
172
            this.vendor.interfaces.splice(interfaceIndex, 1)
168
        },
173
        },
169
    },
174
    },
175
    components: {
176
        ExternalLinkButton,
177
    },
170
}
178
}
171
</script>
179
</script>
172
180
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorShow.vue (-3 / +5 lines)
Lines 3-14 Link Here
3
    <div v-else id="vendors_show">
3
    <div v-else id="vendors_show">
4
        <Toolbar>
4
        <Toolbar>
5
            <ToolbarButton
5
            <ToolbarButton
6
                :to="{ name: 'VendorList' }"
6
                :to="{ name: 'VendorFormAdd' }"
7
                icon="plus"
7
                icon="plus"
8
                :title="$__('New vendor')"
8
                :title="$__('New vendor')"
9
            />
9
            />
10
            <ToolbarButton
10
            <ToolbarButton
11
                :to="{ name: 'VendorList' }"
11
                :to="{
12
                    name: 'VendorFormAddEdit',
13
                    params: { vendor_id: vendor.id },
14
                }"
12
                icon="pencil"
15
                icon="pencil"
13
                :title="$__('Edit vendor')"
16
                :title="$__('Edit vendor')"
14
            />
17
            />
15
- 

Return to bug 38010