Skip to content

Commit 81057f6

Browse files
emoral435skjnldsv
authored andcommitted
fix(files): fixed home aria-label and desc logic
Signed-off-by: Eduardo Morales <[email protected]>
1 parent a6c309f commit 81057f6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

apps/files/src/components/BreadCrumbs.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
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>
3737
<Home :size="20"/>
@@ -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

dist/files-main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)