1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-22 20:32:24 +00:00
bramw_baserow/web-frontend/modules/database/components/field/FieldCountSubForm.vue
2023-06-12 08:57:19 +00:00

39 lines
1.1 KiB
Vue

<template>
<div>
<FieldSelectThroughFieldSubForm
:fields="fields"
:database="database"
:default-values="defaultValues"
></FieldSelectThroughFieldSubForm>
</div>
</template>
<script>
import form from '@baserow/modules/core/mixins/form'
import fieldSubForm from '@baserow/modules/database/mixins/fieldSubForm'
import FieldSelectThroughFieldSubForm from '@baserow/modules/database/components/field/FieldSelectThroughFieldSubForm'
export default {
name: 'FieldCountSubForm',
components: { FieldSelectThroughFieldSubForm },
mixins: [form, fieldSubForm],
data() {
return {
allowedValues: [],
values: {},
}
},
computed: {
database() {
return this.$store.getters['application/get'](this.table.database_id)
},
fields() {
// This part might fail in the future because we can't 100% depend on that the
// fields in the store are related to the component that renders this. An example
// is if you edit the field type in a row edit modal of a related table.
return this.$store.getters['field/getAll']
},
},
validations: {},
}
</script>