Commit ae01a261 authored by Konstantin Schulz's avatar Konstantin Schulz
Browse files

bug fix: private method access in exercise list does not fail anymore (method is now public)

parent d117770c
{ {
"name": "mc_frontend", "name": "mc_frontend",
"version": "1.3.2", "version": "1.3.3",
"author": "Ionic Framework", "author": "Ionic Framework",
"homepage": "https://ionicframework.com/", "homepage": "https://ionicframework.com/",
"scripts": { "scripts": {
......
...@@ -336,7 +336,7 @@ export class CorpusService { ...@@ -336,7 +336,7 @@ export class CorpusService {
} }
} }
private processCorpora(corpusList: CorpusMC[]) { processCorpora(corpusList: CorpusMC[]) {
this.availableCorpora = []; this.availableCorpora = [];
this.availableAuthors = []; this.availableAuthors = [];
corpusList.forEach((corpus: CorpusMC) => { corpusList.forEach((corpus: CorpusMC) => {
......
...@@ -80,7 +80,7 @@ export class ExerciseListPage implements OnInit { ...@@ -80,7 +80,7 @@ export class ExerciseListPage implements OnInit {
return new Date(dateMilliseconds).toLocaleDateString(); return new Date(dateMilliseconds).toLocaleDateString();
} }
private getExerciseList(): void { getExerciseList(): void {
const url: string = HelperService.config['backendBaseUrl'] + HelperService.config['backendApiExerciseListPath']; const url: string = HelperService.config['backendBaseUrl'] + HelperService.config['backendApiExerciseListPath'];
this.hasChanges = false; this.hasChanges = false;
let params: HttpParams = new HttpParams().set('lang', this.translateService.currentLang); let params: HttpParams = new HttpParams().set('lang', this.translateService.currentLang);
......
...@@ -91,7 +91,7 @@ export class ExerciseParametersPage implements OnInit { ...@@ -91,7 +91,7 @@ export class ExerciseParametersPage implements OnInit {
return translatedKey + ' (' + count + ')'; return translatedKey + ' (' + count + ')';
} }
private getExerciseData() { getExerciseData() {
const searchValues: string[] = this.corpusService.exercise.queryItems.map( const searchValues: string[] = this.corpusService.exercise.queryItems.map(
query => query.phenomenon + '=' + query.values.join('|')); query => query.phenomenon + '=' + query.values.join('|'));
const formData = new FormData(); const formData = new FormData();
...@@ -169,7 +169,7 @@ export class ExerciseParametersPage implements OnInit { ...@@ -169,7 +169,7 @@ export class ExerciseParametersPage implements OnInit {
}); });
} }
private initTranslation() { initTranslation() {
this.translateService.get('TEXT_TOO_LONG').subscribe( this.translateService.get('TEXT_TOO_LONG').subscribe(
value => this.textTooLongString = value + HelperService.config['maxTextLength']); value => this.textTooLongString = value + HelperService.config['maxTextLength']);
this.translateService.get('QUERY_VALUE_EMPTY').subscribe(value => this.emptyQueryValueString = value); this.translateService.get('QUERY_VALUE_EMPTY').subscribe(value => this.emptyQueryValueString = value);
......
...@@ -51,7 +51,7 @@ export class TextRangePage { ...@@ -51,7 +51,7 @@ export class TextRangePage {
} }
} }
private addMissingCitations(citationLabelsStart: string[], citationLabelsEnd: string[]) { addMissingCitations(citationLabelsStart: string[], citationLabelsEnd: string[]) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.mapCitationLabelsToValues(citationLabelsStart[0], 0, citationLabelsStart, this.citationValuesStart).then(() => { this.mapCitationLabelsToValues(citationLabelsStart[0], 0, citationLabelsStart, this.citationValuesStart).then(() => {
this.mapCitationLabelsToValues(citationLabelsEnd[0], 0, citationLabelsEnd, this.citationValuesEnd).then(() => { this.mapCitationLabelsToValues(citationLabelsEnd[0], 0, citationLabelsEnd, this.citationValuesEnd).then(() => {
...@@ -80,7 +80,7 @@ export class TextRangePage { ...@@ -80,7 +80,7 @@ export class TextRangePage {
}); });
} }
private addReferences(targetCitationLevel: string, relevantCitations: Citation[] = []): Promise<void> { addReferences(targetCitationLevel: string, relevantCitations: Citation[] = []): Promise<void> {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
if (relevantCitations.some(x => !x)) { if (relevantCitations.some(x => !x)) {
return resolve(); return resolve();
...@@ -250,7 +250,7 @@ export class TextRangePage { ...@@ -250,7 +250,7 @@ export class TextRangePage {
}); });
} }
private initPage() { initPage() {
if (this.corpusService.currentCorpus.citation_level_2 === CitationLevel[CitationLevel.default]) { if (this.corpusService.currentCorpus.citation_level_2 === CitationLevel[CitationLevel.default]) {
const firstKey: string = Object.keys(this.corpusService.currentCorpus.citations)[0]; const firstKey: string = Object.keys(this.corpusService.currentCorpus.citations)[0];
const randomLabel: string = this.corpusService.currentCorpus.citations[firstKey].label; const randomLabel: string = this.corpusService.currentCorpus.citations[firstKey].label;
......
...@@ -80,7 +80,7 @@ export class VocabularyCheckPage implements AfterViewInit { ...@@ -80,7 +80,7 @@ export class VocabularyCheckPage implements AfterViewInit {
}, 0); }, 0);
} }
private processSentences(sentences: Sentence[]) { processSentences(sentences: Sentence[]) {
if (sentences.length > this.vocService.desiredSentenceCount) { if (sentences.length > this.vocService.desiredSentenceCount) {
this.currentRankingUnits.push([]); this.currentRankingUnits.push([]);
sentences.forEach((sent: Sentence) => { sentences.forEach((sent: Sentence) => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment