Skip to content

Commit ceb5f77

Browse files
committed
fix(files): fixed home aria-label and desc logic
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
1 parent 701c1a9 commit ceb5f77

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

apps/files/src/components/BreadCrumbs.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
-
2121
-->
2222

23-
<template>
23+
<template>
2424
<NcBreadcrumbs
2525
data-cy-files-content-breadcrumbs
2626
:aria-label="t('files', 'Current directory path')">
@@ -31,10 +31,10 @@
3131
dir="auto"
3232
:to="section.to"
3333
:title="titleForSection(index, section)"
34-
:aria-description="ariaForSection(index, section)"
34+
:aria-description="ariaForSection(section)"
3535
@click.native="onClick(section.to)">
3636
<template v-if="index === 0" #icon>
37-
<Home :size="20"/>
37+
<Home :size="20" :aria-label="t('files', 'Home')"/>
3838
</template>
3939
</NcBreadcrumb>
4040

@@ -142,8 +142,8 @@ export default defineComponent({
142142
return null
143143
},
144144
145-
ariaForSection(index, section) {
146-
if (index === section.length - 1) {
145+
ariaForSection(section) {
146+
if (section?.to?.query?.dir === this.$route.query.dir) {
147147
return t('files', 'Reload current directory')
148148
}
149149
return null

0 commit comments

Comments
 (0)