mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 16:28:31 +00:00
37 lines
760 B
Vue
37 lines
760 B
Vue
<template>
|
|
<div class="sidebar">
|
|
<component
|
|
:is="component"
|
|
v-for="(component, index) in sidebarWorkspaceComponents"
|
|
:key="'sidebarWorkspaceComponents' + index"
|
|
:workspace="workspace"
|
|
></component>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'RightSidebar',
|
|
props: {
|
|
workspace: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
width: {
|
|
type: Number,
|
|
required: false,
|
|
default: 400,
|
|
},
|
|
},
|
|
computed: {
|
|
sidebarWorkspaceComponents() {
|
|
return Object.values(this.$registry.getAll('plugin'))
|
|
.flatMap((plugin) =>
|
|
plugin.getRightSidebarWorkspaceComponents(this.workspace)
|
|
)
|
|
.filter((component) => component !== null)
|
|
},
|
|
},
|
|
}
|
|
</script>
|