strongs number in passage tooltips

This commit is contained in:
Jason Wall 2020-07-21 21:32:29 -04:00
parent 27878c6412
commit 1fce38d244
2 changed files with 6 additions and 2 deletions

View File

@ -30,7 +30,11 @@
>
<ng-container *ngFor="let w of vs.w">
<ng-container *ngIf="!isPunct(w.t)"> </ng-container
><a *ngIf="w.s != null" (click)="openStrongs(w.s)">{{ w.t }}</a
><a
[title]="this.cardItem.dict + w.s"
*ngIf="w.s != null"
(click)="openStrongs(w.s)"
>{{ w.t }}</a
><ng-container *ngIf="w.s == null">{{
w.t
}}</ng-container> </ng-container

View File

@ -148,7 +148,7 @@ export class PassageComponent extends CardComponent implements OnInit {
}
openStrongs(q: string) {
const dict = q.substring(0, 1).search(/h/i) !== -1 ? 'heb' : 'grk';
const dict = this.cardItem.dict === 'H' ? 'heb' : 'grk';
const strongsNumber = q.substring(1, q.length);
this.appService.getNewStrongs(strongsNumber, dict);
}