Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use MD icon for hidden crumbs action button icons #2413

Merged
merged 1 commit into from
Dec 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/components/Breadcrumbs/Breadcrumbs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,16 @@ import ValidateSlot from '../../utils/ValidateSlot'
import Breadcrumb from '../Breadcrumb'
import { subscribe, unsubscribe } from '@nextcloud/event-bus'

import IconFolder from 'vue-material-design-icons/Folder'

export default {
name: 'Breadcrumbs',
components: {
Actions,
ActionRouter,
ActionLink,
Breadcrumb,
IconFolder,
},
props: {
/**
Expand Down Expand Up @@ -492,12 +495,17 @@ export default {
element = 'ActionRouter'
path = to
}
const folderIcon = createElement('IconFolder', {
props: {
size: 20,
},
slot: 'icon',
})
return createElement(element, {
class: 'crumb',
props: {
to,
href,
icon: 'icon-folder',
},
// Prevent the breadcrumbs from being draggable
attrs: {
Expand All @@ -512,7 +520,7 @@ export default {
dragleave: ($event) => this.dragLeave($event, disabled),
},
},
crumb.componentOptions.propsData.title
[crumb.componentOptions.propsData.title, folderIcon]
)
}))
)
Expand Down