author-detail.page.ts 1.02 KB
Newer Older
1
2
3
4
5
6
7
import {NavController} from '@ionic/angular';
import {CorpusMC} from 'src/app/models/corpusMC';
import {Component} from '@angular/core';
import {TranslateService} from '@ngx-translate/core';
import {HelperService} from '../helper.service';
import {CorpusService} from 'src/app/corpus.service';
import {HttpClient} from '@angular/common/http';
8
import {TextRange} from 'src/app/models/textRange';
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

@Component({
  selector: 'app-author-detail',
  templateUrl: './author-detail.page.html',
  styleUrls: ['./author-detail.page.scss'],
})
export class AuthorDetailPage {
  HelperService = HelperService;

  constructor(public navCtrl: NavController,
              public corpusService: CorpusService,
              public translate: TranslateService,
              public http: HttpClient) {
  }

  showPossibleReferences(corpus: CorpusMC) {
    this.corpusService.currentCorpus = corpus;
26
    this.corpusService.currentTextRange = new TextRange({start: ['', '', ''], end: ['', '', '']});
27
    HelperService.goToTextRangePage(this.navCtrl).then();
28
29
  }
}