mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
fix(files): kept only first and last breadcrumb titles
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
This commit is contained in:
parent
dba7369476
commit
3ca94730aa
3 changed files with 16 additions and 6 deletions
|
|
@ -8,7 +8,8 @@
|
|||
v-bind="section"
|
||||
dir="auto"
|
||||
:to="section.to"
|
||||
:title="titleForSection(section)"
|
||||
:title="titleForSection(index, section)"
|
||||
:aria-description="ariaForSection(index, section)"
|
||||
@click.native="onClick(section.to)">
|
||||
<template v-if="index === 0" #icon>
|
||||
<Home :size="20"/>
|
||||
|
|
@ -108,11 +109,20 @@ export default Vue.extend({
|
|||
}
|
||||
},
|
||||
|
||||
titleForSection(section) {
|
||||
titleForSection(index, section) {
|
||||
if (section?.to?.query?.dir === this.$route.query.dir) {
|
||||
return t('files', 'Reload current directory')
|
||||
} else if (index === 0) {
|
||||
return t('files', 'Go to the "{dir}" directory', section)
|
||||
}
|
||||
return t('files', 'Go to the "{dir}" directory', section)
|
||||
return null
|
||||
},
|
||||
|
||||
ariaForSection(index, section) {
|
||||
if (index === section.length - 1) {
|
||||
return t('files', 'Reload current directory')
|
||||
}
|
||||
return null
|
||||
},
|
||||
|
||||
t,
|
||||
|
|
|
|||
4
dist/files-main.js
vendored
4
dist/files-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files-main.js.map
vendored
2
dist/files-main.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue