Skip to content

Commit a1254e4

Browse files
emoral435nextcloud-command
authored andcommitted
fix(files): fixed home aria-label and desc logic
Signed-off-by: Eduardo Morales <[email protected]> [skip ci] Signed-off-by: nextcloud-command <[email protected]>
1 parent 1086d1e commit a1254e4

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
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

dist/core-common.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/core-common.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.

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)