Skip to content

Commit

Permalink
enh: breadcrumbs icons are now more visually descriptive
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
  • Loading branch information
emoral435 committed Feb 21, 2024
1 parent 21bc3a3 commit fdc379b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/files/src/components/BreadCrumbs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
v-bind="section"
dir="auto"
:to="section.to"
:icon-text="true"
:title="titleForSection(index, section)"
:aria-description="ariaForSection(section)"
@click.native="onClick(section.to)">
Expand Down Expand Up @@ -95,7 +96,7 @@ export default Vue.extend({
},
getDirDisplayName(path) {
if (path === '/') {
return t('files', 'Home')
return this.$navigation?.active?.name || t('files', 'Home')
}
const fileId = this.getFileIdFromPath(path)
Expand Down

0 comments on commit fdc379b

Please sign in to comment.