summaryrefslogtreecommitdiffstats
path: root/apps/files
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:36:24 +0100
commitdf15045541b7dba1e510ce6e097c20c8f24206f8 (patch)
treef6106af72840fd9cf539e8474cc7894a24a2abbe /apps/files
parent1086d1e1b54e3ec56a81f87d78b4e2268df5d509 (diff)
downloadnextcloud-server-df15045541b7dba1e510ce6e097c20c8f24206f8.tar.gz
nextcloud-server-df15045541b7dba1e510ce6e097c20c8f24206f8.zip
fix(files): fixed home aria-label and desc logic
Signed-off-by: Eduardo Morales <emoral435@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps/files')
-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 12e6f75f242..bc177fb1989 100644
--- a/apps/files/src/components/BreadCrumbs.vue
+++ b/apps/files/src/components/BreadCrumbs.vue
@@ -9,7 +9,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"/>
@@ -118,8 +118,8 @@ export default Vue.extend({
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