File tree Expand file tree Collapse file tree
apps/files/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 -
2121 -->
2222
23- <template >
23+ <template >
2424 <NcBreadcrumbs
2525 data-cy-files-content-breadcrumbs
2626 :aria-label =" t('files', 'Current directory path')" >
3131 dir =" auto"
3232 :to =" section.to"
3333 :title =" titleForSection(index, section)"
34- :aria-description =" ariaForSection(index, section)"
34+ :aria-description =" ariaForSection(section)"
3535 @click.native =" onClick(section.to)" >
3636 <template v-if =" index === 0 " #icon >
37- <Home :size =" 20" />
37+ <Home :size =" 20" :aria-label = " t('files', 'Home') " />
3838 </template >
3939 </NcBreadcrumb >
4040
@@ -142,8 +142,8 @@ export default defineComponent({
142142 return null
143143 },
144144
145- ariaForSection(index , section ) {
146- if (index === section . length - 1 ) {
145+ ariaForSection(section ) {
146+ if (section ?. to ?. query ?. dir === this . $route . query . dir ) {
147147 return t (' files' , ' Reload current directory' )
148148 }
149149 return null
You can’t perform that action at this time.
0 commit comments