mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
Remove TODOs that are done
This commit is contained in:
parent
e21ef2422d
commit
912bd7da07
@ -55,7 +55,6 @@ class CorpusAnalysisApp {
|
|||||||
this.elements.m.initModal.close();
|
this.elements.m.initModal.close();
|
||||||
},
|
},
|
||||||
(cqiError) => {
|
(cqiError) => {
|
||||||
// TODO: CHECK THIS!
|
|
||||||
let errorsElement = this.elements.initModal.querySelector('.errors');
|
let errorsElement = this.elements.initModal.querySelector('.errors');
|
||||||
let progressElement = this.elements.initModal.querySelector('.progress');
|
let progressElement = this.elements.initModal.querySelector('.progress');
|
||||||
errorsElement.innerText = JSON.stringify(cqiError);
|
errorsElement.innerText = JSON.stringify(cqiError);
|
||||||
|
@ -292,7 +292,7 @@ class CorpusAnalysisConcordance {
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
let subcorpus = this.data.subcorpora[this.settings.selectedSubcorpus];
|
let subcorpus = this.data.subcorpora[this.settings.selectedSubcorpus];
|
||||||
subcorpus.o.drop().then(
|
subcorpus.o.drop().then(
|
||||||
cQiStatus => {
|
(cQiStatus) => {
|
||||||
app.flash(`${subcorpus.o.name} deleted`, 'corpus');
|
app.flash(`${subcorpus.o.name} deleted`, 'corpus');
|
||||||
delete this.data.subcorpora[subcorpus.o.name];
|
delete this.data.subcorpora[subcorpus.o.name];
|
||||||
this.settings.selectedSubcorpus = undefined;
|
this.settings.selectedSubcorpus = undefined;
|
||||||
@ -313,7 +313,7 @@ class CorpusAnalysisConcordance {
|
|||||||
this.clearSubcorpusPagination();
|
this.clearSubcorpusPagination();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
cQiError => {
|
(cQiError) => {
|
||||||
app.flash(`${cQiError.payload.code}: ${cQiError.payload.msg}`, 'error');
|
app.flash(`${cQiError.payload.code}: ${cQiError.payload.msg}`, 'error');
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -28,7 +28,6 @@ class CorpusAnalysisReader {
|
|||||||
init() {
|
init() {
|
||||||
// Init data
|
// Init data
|
||||||
this.data.corpus = this.app.data.corpus;
|
this.data.corpus = this.app.data.corpus;
|
||||||
this.data.subcorpora = {}; // TODO: DO WE NEED THIS HERE?
|
|
||||||
// Add event listeners
|
// Add event listeners
|
||||||
this.elements.form.addEventListener('submit', (event) => {
|
this.elements.form.addEventListener('submit', (event) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
@ -46,7 +45,6 @@ class CorpusAnalysisReader {
|
|||||||
this.app.enableActionElements();
|
this.app.enableActionElements();
|
||||||
},
|
},
|
||||||
(cqiError) => {
|
(cqiError) => {
|
||||||
// TODO: CHECK THIS!
|
|
||||||
this.elements.error.innerText = JSON.stringify(error);
|
this.elements.error.innerText = JSON.stringify(error);
|
||||||
this.elements.error.classList.remove('hide');
|
this.elements.error.classList.remove('hide');
|
||||||
if ('payload' in error && 'code' in error.payload && 'msg' in error.payload) {
|
if ('payload' in error && 'code' in error.payload && 'msg' in error.payload) {
|
||||||
|
Loading…
Reference in New Issue
Block a user