Skip to content
Snippets Groups Projects

Draft: Vue super sidebar PoC

Closed Paul Gascou-Vaillancourt requested to merge super_vue_sidebar_poc into master
5 unresolved threads
Compare and Show latest version
14 files
+ 301
54
Compare changes
  • Side-by-side
  • Inline
Files
14
<script>
import { GlAvatar } from '@gitlab/ui';
import NavItem from './nav_item.vue';
export default {
components: {
GlAvatar,
NavItem
},
props: {
context: {
type: Object,
required: true
}
},
computed: {
item() {
const { name: title, path: link } = this.context.container
return { title, link }
}
}
}
</script>
<template>
<nav-item class="context-header" :item="item">
<template #icon>
<gl-avatar :size="32" shape="rect"
src="https://gitlab.com/uploads/-/system/project/avatar/278964/project_avatar.png?width=32" />
</template>
</nav-item>
</template>
\ No newline at end of file
Loading