Koha/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Breadcrumb.vue
Jonathan Druart 8d573797a9
Bug 32030: add breadcrumb
Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-11-08 09:43:44 -03:00

19 lines
No EOL
446 B
Vue

<template>
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
<ol>
<li v-for="(item, counter) in breadCrumbs" v-bind:key="counter">
<router-link :to="item.path"> {{ item.text }}</router-link>
</li>
</ol>
</nav>
</template>
<script>
export default {
computed: {
breadCrumbs() {
return this.$route.meta.breadcrumb
},
},
};
</script>