diff --git a/app/db/src/app/search/components/passage/passage.component.ts b/app/db/src/app/search/components/passage/passage.component.ts index 7f0e4446..ee204521 100644 --- a/app/db/src/app/search/components/passage/passage.component.ts +++ b/app/db/src/app/search/components/passage/passage.component.ts @@ -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) { diff --git a/app/db/src/app/services/app.service.ts b/app/db/src/app/services/app.service.ts index 45f89e76..2585feab 100644 --- a/app/db/src/app/services/app.service.ts +++ b/app/db/src/app/services/app.service.ts @@ -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) {