Skip to content

Commit

Permalink
fix(files): fixed home aria-label and desc logic
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Morales <[email protected]>
  • Loading branch information
emoral435 committed Jan 19, 2024
1 parent 701c1a9 commit ea765cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/files/src/components/BreadCrumbs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
dir="auto"
:to="section.to"
:title="titleForSection(index, section)"
:aria-description="ariaForSection(index, section)"
:aria-description="ariaForSection(section)"
@click.native="onClick(section.to)">
<template v-if="index === 0" #icon>
<Home :size="20"/>
Expand Down Expand Up @@ -142,8 +142,8 @@ export default defineComponent({
return null
},

ariaForSection(index, section) {
if (index === section.length - 1) {
ariaForSection(section) {
if (section?.to?.query?.dir === this.$route.query.dir) {
return t('files', 'Reload current directory')
}
return null
Expand Down

0 comments on commit ea765cf

Please sign in to comment.