mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-23 23:39:50 -04:00
fix display of strongs results
This commit is contained in:
parent
a033801f29
commit
078aa1eddd
@ -12,6 +12,7 @@ import { Paragraph } from '../../../models/app-state';
|
|||||||
})
|
})
|
||||||
export class PassageComponent extends CardComponent implements OnInit {
|
export class PassageComponent extends CardComponent implements OnInit {
|
||||||
ref: BibleReference;
|
ref: BibleReference;
|
||||||
|
|
||||||
showParagraphs$ = this.appService.select(
|
showParagraphs$ = this.appService.select(
|
||||||
(state) => state.displaySettings.showParagraphs
|
(state) => state.displaySettings.showParagraphs
|
||||||
);
|
);
|
||||||
@ -149,8 +150,10 @@ export class PassageComponent extends CardComponent implements OnInit {
|
|||||||
|
|
||||||
openStrongs(q: string) {
|
openStrongs(q: string) {
|
||||||
const dict = this.cardItem.dict === 'H' ? 'heb' : 'grk';
|
const dict = this.cardItem.dict === 'H' ? 'heb' : 'grk';
|
||||||
const strongsNumber = q.substring(1, q.length);
|
const numbers = q.split(' ');
|
||||||
this.appService.getNewStrongs(strongsNumber, dict, this.cardItem);
|
for (const sn of numbers) {
|
||||||
|
this.appService.getNewStrongs(sn, dict, this.cardItem);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
isPunct(c: string) {
|
isPunct(c: string) {
|
||||||
|
@ -105,11 +105,11 @@ function reducer(state: AppState, action: AppAction): AppState {
|
|||||||
if (state.displaySettings.appendCardToBottom) {
|
if (state.displaySettings.appendCardToBottom) {
|
||||||
const before = state.cards.slice(0, idx + 1);
|
const before = state.cards.slice(0, idx + 1);
|
||||||
const after = state.cards.slice(idx + 1);
|
const after = state.cards.slice(idx + 1);
|
||||||
cards = [before, action.card, after];
|
cards = [...before, action.card, ...after];
|
||||||
} else {
|
} else {
|
||||||
const before = state.cards.slice(0, idx);
|
const before = state.cards.slice(0, idx);
|
||||||
const after = state.cards.slice(idx);
|
const after = state.cards.slice(idx);
|
||||||
cards = [before, action.card, after];
|
cards = [...before, action.card, ...after];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (state.displaySettings.appendCardToBottom) {
|
if (state.displaySettings.appendCardToBottom) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user