From 01eabb74f3136ea27926bfd5041090ad6f935056 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Thu, 14 Dec 2023 14:16:46 +0200 Subject: [PATCH] [develop-filters | DONE | CHANGED]: searchFilter.component.ts: In method "_formatTitle()", remove number of filter values from filter name. --- searchPages/searchUtils/searchFilter.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/searchPages/searchUtils/searchFilter.component.ts b/searchPages/searchUtils/searchFilter.component.ts index 2f87417f..2a2d9d68 100644 --- a/searchPages/searchUtils/searchFilter.component.ts +++ b/searchPages/searchUtils/searchFilter.component.ts @@ -95,7 +95,8 @@ export class SearchFilterComponent implements OnInit, OnChanges { } public _formatTitle(title, length) { - return (((title + " (" + length + ")").length > this._maxCharacters) ? (title.substring(0, (this._maxCharacters - (" (" + length + ")").length - ('...').length)) + "...") : title) + " (" + (length > 95 ? "100" : length) + ")"; + // return (((title + " (" + length + ")").length > this._maxCharacters) ? (title.substring(0, (this._maxCharacters - (" (" + length + ")").length - ('...').length)) + "...") : title) + " (" + (length > 95 ? "100" : length) + ")"; + return (((title).length > this._maxCharacters) ? (title.substring(0, (this._maxCharacters - ('...').length)) + "...") : title); } public _formatName(value) {