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>
This commit is contained in:
Eduardo Morales 2024-01-18 17:42:47 -06:00 committed by John Molakvoæ
parent 1086d1e1b5
commit df15045541
No known key found for this signature in database
GPG key ID: 60C25B8C072916CF
5 changed files with 9 additions and 9 deletions

View file

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

4
dist/core-common.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
dist/files-main.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long