diff options
author | Eduardo Morales <emoral435@gmail.com> | 2024-01-18 17:42:47 -0600 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2024-01-20 13:04:25 +0100 |
commit | 81057f6191a8faf2d4c4662a3cadda87b12e0343 (patch) | |
tree | f2ebe6eda2c19e07f82ac855fa53b97f62e104d5 /apps | |
parent | a6c309f033d962ab3d4480ce38f96639c73f1805 (diff) | |
download | nextcloud-server-81057f6191a8faf2d4c4662a3cadda87b12e0343.tar.gz nextcloud-server-81057f6191a8faf2d4c4662a3cadda87b12e0343.zip |
fix(files): fixed home aria-label and desc logic
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/src/components/BreadCrumbs.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/src/components/BreadCrumbs.vue b/apps/files/src/components/BreadCrumbs.vue index 854a1942496..f50a4d14fd8 100644 --- a/apps/files/src/components/BreadCrumbs.vue +++ b/apps/files/src/components/BreadCrumbs.vue @@ -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"/> @@ -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 |