diff --git a/src/app/components/calculator-list/calculator-list.component.ts b/src/app/components/calculator-list/calculator-list.component.ts index ed271083410874337ed99a406dc2a4dd8dfa9ebc..6dc05bea1420b7043f7f1a8c3b92b26bc5acf58f 100644 --- a/src/app/components/calculator-list/calculator-list.component.ts +++ b/src/app/components/calculator-list/calculator-list.component.ts @@ -87,6 +87,7 @@ export class CalculatorListComponent implements OnInit { item.calculators.push({ type: calcType, label: ServiceFactory.formulaireService.getLocalisedTitleFromCalculatorType(calcType), + shortLabel: ServiceFactory.formulaireService.getLocalisedShortTitleFromCalculatorType(calcType), description: ServiceFactory.formulaireService.getLocalisedDescriptionFromCalculatorType(calcType), buttonId: "create-calc-" + calcType }); @@ -121,6 +122,8 @@ export class CalculatorListComponent implements OnInit { unusedTheme.calculators.push({ type: t, label: ServiceFactory.formulaireService.getLocalisedTitleFromCalculatorType(t), + shortLabel: ServiceFactory.formulaireService.getLocalisedShortTitleFromCalculatorType(t), + description: ServiceFactory.formulaireService.getLocalisedDescriptionFromCalculatorType(t), buttonId: "create-calc-" + t }); } @@ -205,7 +208,7 @@ export class CalculatorListComponent implements OnInit { // filter items based on parent component's search field for (const i of this.filteredItems) { i.calculators = i.calculators.filter((c) => { - return this.searchMatches(c.label) || this.searchMatches(c.description); + return this.searchMatches(c.label) || this.searchMatches(c.shortLabel) || this.searchMatches(c.description); }); } this.filteredItems = this.filteredItems.filter((i) => {