mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-23 07:19: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 {
|
||||
ref: BibleReference;
|
||||
|
||||
showParagraphs$ = this.appService.select(
|
||||
(state) => state.displaySettings.showParagraphs
|
||||
);
|
||||
@ -149,8 +150,10 @@ export class PassageComponent extends CardComponent implements OnInit {
|
||||
|
||||
openStrongs(q: string) {
|
||||
const dict = this.cardItem.dict === 'H' ? 'heb' : 'grk';
|
||||
const strongsNumber = q.substring(1, q.length);
|
||||
this.appService.getNewStrongs(strongsNumber, dict, this.cardItem);
|
||||
const numbers = q.split(' ');
|
||||
for (const sn of numbers) {
|
||||
this.appService.getNewStrongs(sn, dict, this.cardItem);
|
||||
}
|
||||
}
|
||||
|
||||
isPunct(c: string) {
|
||||
|
@ -105,11 +105,11 @@ function reducer(state: AppState, action: AppAction): AppState {
|
||||
if (state.displaySettings.appendCardToBottom) {
|
||||
const before = state.cards.slice(0, idx + 1);
|
||||
const after = state.cards.slice(idx + 1);
|
||||
cards = [before, action.card, after];
|
||||
cards = [...before, action.card, ...after];
|
||||
} else {
|
||||
const before = state.cards.slice(0, idx);
|
||||
const after = state.cards.slice(idx);
|
||||
cards = [before, action.card, after];
|
||||
cards = [...before, action.card, ...after];
|
||||
}
|
||||
} else {
|
||||
if (state.displaySettings.appendCardToBottom) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user