Commit 0aec9af1 authored by Konstantin Schulz's avatar Konstantin Schulz
Browse files

fixed OOV checkbox in vocabulary mode

parent bf8b42a4
......@@ -55,6 +55,11 @@ export class HelperService {
navCtrl.navigateRoot('/test').then();
}
static goToVocabularyCheckPage(navCtrl: NavController) {
HelperService.isVocabularyCheck = true;
navCtrl.navigateForward('/vocabulary-check').then();
}
initConfig() {
this.http.get('assets/config.json').subscribe((config: object) => {
HelperService.config = config;
......
......@@ -44,15 +44,6 @@ export class HomePage {
this.navCtrl.navigateForward('/author').then();
}
goToTestPage() {
this.navCtrl.navigateForward('/test').then();
}
goToVocabularyCheckPage() {
HelperService.isVocabularyCheck = true;
this.navCtrl.navigateForward('/vocabulary-check').then();
}
refreshCorpora() {
this.isCorpusUpdateInProgress = true;
this.corpusService.getCorpora(0).then(async (error?: any) => {
......@@ -68,18 +59,6 @@ export class HomePage {
});
}
restoreLastSetup() {
this.corpusService.restoreLastCorpus();
this.exerciseService.restoreLastURN().then(() => {
if (HelperService.isVocabularyCheck) {
this.navCtrl.navigateForward('/vocabulary-check').then();
} else {
this.navCtrl.navigateForward('show-text').then();
}
}, () => {
});
}
test() {
}
}
......@@ -27,13 +27,14 @@
</ion-button>
</ion-col>
<ion-col>
<ion-button (click)="goToVocabularyCheckPage()">{{ 'VOCABULARY_CHECK' | translate }}</ion-button>
<ion-button
(click)="HelperService.goToVocabularyCheckPage(navCtrl)">{{ 'VOCABULARY_CHECK' | translate }}</ion-button>
</ion-col>
</ion-row>
<ion-row *ngIf="HelperService.isVocabularyCheck">
<ion-col>
<label>{{ "TEXT_SHOW_OOV" | translate}}
<input type="checkbox" [(ngModel)]="highlightOOV" />
<input type="checkbox" [(ngModel)]="highlightOOV"/>
</label>
<br>
</ion-col>
......@@ -54,4 +55,4 @@
<ng-template #loading>
<ion-spinner></ion-spinner>
</ng-template>
</ion-content>
\ No newline at end of file
</ion-content>
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