mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 00:08:25 +00:00
Update the nuxt3 version. Co-authored-by: Jonathan Adeline <jonathan@baserow.io> Co-authored-by: Bram Wiepjes <bramw@protonmail.com> Co-authored-by: Cezary <cezary@baserow.io> Co-authored-by: Tsering Paljor <tsering@baserow.io> Co-authored-by: Przemyslaw Kukulski <przemyslaw+gh@baserow.io> Co-authored-by: Bram <bram2w@users.noreply.github.com>
52 lines
1.2 KiB
Vue
52 lines
1.2 KiB
Vue
<template>
|
|
<Context
|
|
ref="context"
|
|
:overflow-scroll="true"
|
|
:max-height-if-outside-viewport="true"
|
|
>
|
|
<ul class="context__menu">
|
|
<li class="context__menu-item">
|
|
<a class="context__menu-item-link" @click="handleShareClick">
|
|
<i class="context__menu-item-icon iconoir-copy"></i>
|
|
{{
|
|
shared
|
|
? $t('dataSourceItemContext.unshareBetweenPages')
|
|
: $t('dataSourceItemContext.shareBetweenPages')
|
|
}}
|
|
</a>
|
|
<a class="context__menu-item-link" @click="handleDeleteClick">
|
|
<i class="context__menu-item-icon iconoir-bin"></i>
|
|
{{ $t('action.delete') }}
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</Context>
|
|
</template>
|
|
|
|
<script>
|
|
import context from '@baserow/modules/core/mixins/context'
|
|
|
|
export default {
|
|
name: 'DataSourceItemContext',
|
|
mixins: [context],
|
|
props: {
|
|
shared: {
|
|
type: Boolean,
|
|
required: false,
|
|
default: false,
|
|
},
|
|
},
|
|
emits: ['delete', 'share'],
|
|
methods: {
|
|
handleDeleteClick() {
|
|
this.$emit('delete')
|
|
this.hide()
|
|
},
|
|
handleShareClick() {
|
|
this.$emit('share')
|
|
this.hide()
|
|
},
|
|
},
|
|
}
|
|
</script>
|