Skip to content

Commit

Permalink
enh(breadcrumbs): removed unnecessary aria label
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Morales <[email protected]>
  • Loading branch information
emoral435 committed Dec 20, 2023
1 parent aae9960 commit 9d22745
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions apps/files/src/components/BreadCrumbs.vue
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<template>
<NcBreadcrumbs data-cy-files-content-breadcrumbs>
<NcBreadcrumbs
data-cy-files-content-breadcrumbs
:aria-label="t('files', 'Current directory path')">
<!-- Current path sections -->
<NcBreadcrumb v-for="(section, index) in sections"
:key="section.dir"
:aria-label="ariaLabel(section)"
:title="ariaLabel(section)"
v-bind="section"
dir="auto"
:to="section.to"
@click.native="onClick(section.to)">
<template v-if="index === 0" #icon>
<Home :size="20" />
<Home :size="20" :title="titleForSection(section)" />
</template>
</NcBreadcrumb>

Expand Down Expand Up @@ -106,7 +106,7 @@ export default Vue.extend({
}
},
ariaLabel(section) {
titleForSection(section) {
if (section?.to?.query?.dir === this.$route.query.dir) {
return t('files', 'Reload current directory')
}
Expand Down
4 changes: 2 additions & 2 deletions dist/files-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-main.js.map

Large diffs are not rendered by default.

0 comments on commit 9d22745

Please sign in to comment.