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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ToolbarButton.vue (-2 / +3 lines)
Lines 17-22 Link Here
17
        :class="class"
17
        :class="class"
18
        ><font-awesome-icon icon="pencil" /> {{ $__("Edit") }}</a
18
        ><font-awesome-icon icon="pencil" /> {{ $__("Edit") }}</a
19
    >
19
    >
20
    <router-link v-else-if="action === undefined && to" :to="to" :class="class"
21
        ><font-awesome-icon v-if="icon" :icon="icon" /> {{ title }}</router-link
22
    >
20
    <span v-else>{{ $__("Unknown action %s").format(action) }}</span>
23
    <span v-else>{{ $__("Unknown action %s").format(action) }}</span>
21
</template>
24
</template>
22
25
Lines 25-31 export default { Link Here
25
    props: {
28
    props: {
26
        action: {
29
        action: {
27
            type: String,
30
            type: String,
28
            required: true,
29
        },
31
        },
30
        to: {
32
        to: {
31
            type: [String, Object],
33
            type: [String, Object],
32
- 

Return to bug 37301