mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-24 05:03:02 +00:00
28 lines
714 B
Vue
28 lines
714 B
Vue
<template>
|
|
<Context :overflow-scroll="true" :max-height-if-outside-viewport="true">
|
|
<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>
|