Merge pull request #42950 from nextcloud/fix/a11y/41895/breadcrumb-fix-for-home-component

pull/42980/head
John Molakvoæ 2024-01-20 13:21:25 +07:00 committed by GitHub
commit fd73d3a991
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

@ -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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long