Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
callidus
mc_frontend
Commits
0aec9af1
Commit
0aec9af1
authored
May 08, 2019
by
Konstantin Schulz
Browse files
fixed OOV checkbox in vocabulary mode
parent
bf8b42a4
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/app/helper.service.ts
View file @
0aec9af1
...
...
@@ -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
;
...
...
src/app/home/home.page.ts
View file @
0aec9af1
...
...
@@ -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
()
{
}
}
src/app/show-text/show-text.page.html
View file @
0aec9af1
...
...
@@ -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>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment