mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-18 11:18:40 +00:00
28 lines
651 B
Vue
28 lines
651 B
Vue
<template>
|
|
<Context>
|
|
<div class="context__menu-title">
|
|
{{ $t('gridViewRowsAddContext.title') }}
|
|
</div>
|
|
<ul class="context__menu">
|
|
<li v-for="rowAmountChoice in rowAmountChoices" :key="rowAmountChoice">
|
|
<a @click="$emit('add-rows', rowAmountChoice)">
|
|
{{ $t('gridViewRowsAddContext.choice', { rowAmountChoice }) }}
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</Context>
|
|
</template>
|
|
|
|
<script>
|
|
import context from '@baserow/modules/core/mixins/context'
|
|
|
|
export default {
|
|
name: 'GridViewRowsAddContext',
|
|
mixins: [context],
|
|
computed: {
|
|
rowAmountChoices() {
|
|
return [5, 10, 20, 50]
|
|
},
|
|
},
|
|
}
|
|
</script>
|