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

pull/42980/head
John Molakvoæ 2 years ago committed by GitHub
commit fd73d3a991
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      apps/files/src/components/BreadCrumbs.vue
  2. 4
      dist/files-main.js
  3. 2
      dist/files-main.js.map

@ -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
Loading…
Cancel
Save