diff --git a/app/static/js/CorpusAnalysis/CQiClient.js b/app/static/js/CorpusAnalysis/CQiClient.js index 4a3706e3..963a63ca 100644 --- a/app/static/js/CorpusAnalysis/CQiClient.js +++ b/app/static/js/CorpusAnalysis/CQiClient.js @@ -98,6 +98,25 @@ class CQiCorpus { this.subcorpora = new CQiSubcorpusCollection(this.socket, this); } + getCorpusData() { + return new Promise((resolve, reject) => { + const dummyData = {}; + + resolve(dummyData); + /* + const args = {corpus_name: this.name}; + + this.socket.emit('cqi.corpora.corpus.getCorpusData', args, response => { + if (response.code === 200) { + resolve(response.payload); + } else { + reject(response); + } + }); + */ + }) + } + drop() { return new Promise((resolve, reject) => { const args = {corpus_name: this.name};