Skip to content
Snippets Groups Projects
Verified Commit 793d6ba7 authored by Erwan Rouchet's avatar Erwan Rouchet
Browse files

Show API errors on allowed metadata and entity types management

parent 8d0aec39
No related branches found
No related tags found
1 merge request!1449Show API errors on allowed metadata and entity types management
......@@ -22,7 +22,7 @@
</template>
<script>
import { mapState, mapActions } from 'vuex'
import { mapState, mapActions, mapMutations } from 'vuex'
import { errorParser } from '@/helpers'
import MetaData from './Row'
import CreateForm from './CreateForm'
......@@ -46,6 +46,7 @@ export default {
},
methods: {
...mapActions('corpora', ['listAllowedMetadata']),
...mapMutations('notifications', ['notify']),
async listMetaData () {
if (this.corpusAllowedMetadata[this.corpusId]) return
this.loading = true
......
......@@ -23,7 +23,7 @@
</template>
<script>
import { mapState, mapActions, mapGetters } from 'vuex'
import { mapState, mapActions, mapMutations, mapGetters } from 'vuex'
import { errorParser } from '@/helpers'
import { corporaMixin } from '@/mixins.js'
import Row from './Row'
......@@ -55,6 +55,7 @@ export default {
},
methods: {
...mapActions('corpora', ['listCorpusEntityTypes']),
...mapMutations('notifications', ['notify']),
async listEntityTypes () {
if (this.corpusEntityTypes[this.corpusId]) return
this.loading = true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment