Skip to content

Commit

Permalink
- ADD: Added Home item to album breadcrumbs.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-raubach committed Jun 4, 2024
1 parent 254b3ac commit 1b0c2ad
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/views/AlbumView.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<template>
<div>
<v-toolbar color="secondary" v-if="albumHierarchy && albumHierarchy.length > 0">
<v-toolbar color="secondary">
<v-breadcrumbs>
<template v-for="(h, index) in albumHierarchy" :key="`hierarchy-item-${h.id}`">
<v-breadcrumbs-divider v-if="index > 0" />
<v-breadcrumbs-item :title="h.name" :to="{ name: 'albums-for-parent', params: { parentAlbumId: h.id } }" />
<v-breadcrumbs-item title="Home" :to="{ name: 'albums' }" />
<template v-if="albumHierarchy && albumHierarchy.length > 0">
<template v-for="h in albumHierarchy" :key="`hierarchy-item-${h.id}`">
<v-breadcrumbs-divider />
<v-breadcrumbs-item :title="h.name" :to="{ name: 'albums-for-parent', params: { parentAlbumId: h.id } }" />
</template>
</template>
</v-breadcrumbs>
</v-toolbar>
Expand Down

0 comments on commit 1b0c2ad

Please sign in to comment.