1
0
Fork 0
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:
Bram Wiepjes 2020-04-07 19:49:45 +00:00
parent 0709cf0aec
commit f44b07c3b0
26 changed files with 371 additions and 247 deletions
web-frontend/modules/database/components/field

View file

@ -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()
},
},
}