1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-01-15 21:18:41 +00:00
bramw_baserow/web-frontend/modules/dashboard/components/widget/WidgetContextMenu.vue
2024-12-25 08:40:24 +00:00

37 lines
810 B
Vue

<template>
<div ref="contextButton" class="widget-header__context-menu">
<ButtonIcon
icon="iconoir-more-vert"
type="secondary"
size="regular"
@click.stop="
$refs.context.toggle($refs.contextButton, 'bottom', 'right', 8, 0)
"
></ButtonIcon>
<WidgetContext
ref="context"
:widget="widget"
:dashboard="dashboard"
@delete-widget="$emit('delete-widget', $event)"
></WidgetContext>
</div>
</template>
<script>
import WidgetContext from '@baserow/modules/dashboard/components/widget/WidgetContext'
export default {
name: 'WidgetContextMenu',
components: { WidgetContext },
props: {
dashboard: {
type: Object,
required: true,
},
widget: {
type: Object,
required: true,
},
},
}
</script>