mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
enh: breadcrumb icon matches nav view icon
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
This commit is contained in:
parent
bbf279f546
commit
19619f53c6
1 changed files with 6 additions and 2 deletions
|
|
@ -30,12 +30,13 @@
|
|||
v-bind="section"
|
||||
dir="auto"
|
||||
:to="section.to"
|
||||
:icon-text="true"
|
||||
:force-icon-text="true"
|
||||
:title="titleForSection(index, section)"
|
||||
:aria-description="ariaForSection(section)"
|
||||
@click.native="onClick(section.to)">
|
||||
<template v-if="index === 0" #icon>
|
||||
<Home :size="20"/>
|
||||
<NcIconSvgWrapper v-if="section.icon" :size="20" :svg="section.icon" />
|
||||
<Home v-else :size="20"/>
|
||||
</template>
|
||||
</NcBreadcrumb>
|
||||
|
||||
|
|
@ -54,6 +55,7 @@ import { basename } from 'path'
|
|||
import Home from 'vue-material-design-icons/Home.vue'
|
||||
import NcBreadcrumb from '@nextcloud/vue/dist/Components/NcBreadcrumb.js'
|
||||
import NcBreadcrumbs from '@nextcloud/vue/dist/Components/NcBreadcrumbs.js'
|
||||
import NcIconSvgWrapper from '@nextcloud/vue/dist/Components/NcIconSvgWrapper.js'
|
||||
import { defineComponent } from 'vue'
|
||||
|
||||
import { useFilesStore } from '../store/files.ts'
|
||||
|
|
@ -66,6 +68,7 @@ export default defineComponent({
|
|||
Home,
|
||||
NcBreadcrumbs,
|
||||
NcBreadcrumb,
|
||||
NcIconSvgWrapper,
|
||||
},
|
||||
|
||||
props: {
|
||||
|
|
@ -106,6 +109,7 @@ export default defineComponent({
|
|||
exact: true,
|
||||
name: this.getDirDisplayName(dir),
|
||||
to,
|
||||
icon: this.$navigation.active?.icon || null,
|
||||
}
|
||||
})
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue