Skip to content

Commit 8cefaf4

Browse files
emoral435backportbot[bot]
authored andcommitted
fix(files): fixed home aria-label and desc logic
Signed-off-by: Eduardo Morales <emoral435@gmail.com> [skip ci]
1 parent 1086d1e commit 8cefaf4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/files/src/components/BreadCrumbs.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
dir="auto"
1010
:to="section.to"
1111
:title="titleForSection(index, section)"
12-
:aria-description="ariaForSection(index, section)"
12+
:aria-description="ariaForSection(section)"
1313
@click.native="onClick(section.to)">
1414
<template v-if="index === 0" #icon>
1515
<Home :size="20"/>
@@ -118,8 +118,8 @@ export default Vue.extend({
118118
return null
119119
},
120120
121-
ariaForSection(index, section) {
122-
if (index === section.length - 1) {
121+
ariaForSection(section) {
122+
if (section?.to?.query?.dir === this.$route.query.dir) {
123123
return t('files', 'Reload current directory')
124124
}
125125
return null

0 commit comments

Comments
 (0)