mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
40 lines
898 B
Vue
40 lines
898 B
Vue
<template>
|
|
<div ref="contextButton" class="widget__header-context-menu">
|
|
<ButtonIcon
|
|
:data-testid="`dashboard-widget-context-${widget.id}`"
|
|
icon="iconoir-more-vert"
|
|
type="secondary"
|
|
size="small"
|
|
@click.stop="
|
|
$refs.context.toggle($refs.contextButton, 'bottom', 'right', 8, -8)
|
|
"
|
|
></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,
|
|
},
|
|
},
|
|
emits: ['delete-widget'],
|
|
}
|
|
</script>
|