Skip to content
Snippets Groups Projects
Commit a836dc1b authored by Valentin Rigal's avatar Valentin Rigal
Browse files

Load datasets from the selection action

parent 16e650e0
No related branches found
No related tags found
1 merge request!1601Load datasets from the selection action
......@@ -140,14 +140,15 @@ export default defineComponent({
set: null as string | null
}),
computed: {
...mapState(useDatasetStore, ['singleCorpusDatasets']),
...mapState(useDatasetStore, ['corpusDatasets', 'singleCorpusDatasets']),
title (): string {
return `Add ${this.corpus?.name} selection to a dataset`
},
canAdd (): boolean {
return this.selectedDataset !== null && this.set !== null
},
availableDatasets (): Dataset[] {
availableDatasets (): Dataset[] | null {
if (this.corpusDatasets[this.corpusId] === undefined) return null
return this.singleCorpusDatasets(this.corpusId)
}
},
......
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