mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-05-05 09:20:09 +00:00
moved the abstractions out of the stores, fixed grid unexisting data bug and made row data more consistent in de backend
This commit is contained in:
parent
0709cf0aec
commit
f44b07c3b0
26 changed files with 371 additions and 247 deletions
web-frontend/modules/database/components/field
|
@ -48,7 +48,6 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState } from 'vuex'
|
||||
import { required } from 'vuelidate/lib/validators'
|
||||
|
||||
import form from '@baserow/modules/core/mixins/form'
|
||||
|
@ -67,9 +66,9 @@ export default {
|
|||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState({
|
||||
fieldTypes: (state) => state.field.types,
|
||||
}),
|
||||
fieldTypes() {
|
||||
return this.$registry.getAll('field')
|
||||
},
|
||||
},
|
||||
validations: {
|
||||
values: {
|
||||
|
@ -79,7 +78,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
getFormComponent(type) {
|
||||
return this.$store.getters['field/getType'](type).getFormComponent()
|
||||
return this.$registry.get('field', type).getFormComponent()
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue