aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorEduardo Morales <emoral435@gmail.com>2024-01-18 17:42:47 -0600
committerJohn Molakvoæ <skjnldsv@protonmail.com>2024-01-20 13:04:25 +0100
commit81057f6191a8faf2d4c4662a3cadda87b12e0343 (patch)
treef2ebe6eda2c19e07f82ac855fa53b97f62e104d5 /apps
parenta6c309f033d962ab3d4480ce38f96639c73f1805 (diff)
downloadnextcloud-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.vue6
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