Commit 51e58987 authored by descamps's avatar descamps
Browse files

KDE - Recherche de PA/PUA - Modifier le titre du champ de recherche par...

KDE - Recherche de PA/PUA - Modifier le titre du champ de recherche par recherche intitule et identifiant + Permettre de rechercher par son intitulé + Traduction
parent 322b5bf0
......@@ -8,7 +8,9 @@ export class FilterByStringNamePipe implements PipeTransform {
transform(listOfProfiles: ProfileDescription[], nameToFilter: string): ProfileDescription[] {
if (!listOfProfiles) { return null; }
if (!nameToFilter) { return listOfProfiles; }
this.listOfProfiles = listOfProfiles.filter(profile => profile.identifier.toLowerCase().indexOf(nameToFilter.toLowerCase()) >= 0);
this.listOfProfiles = listOfProfiles.filter(profile => profile.identifier.toLowerCase().indexOf(nameToFilter.toLowerCase()) >= 0 || profile.name.toLowerCase().indexOf(nameToFilter.toLowerCase()) >= 0);
return this.listOfProfiles;
}
}
\ No newline at end of file
}
......@@ -207,7 +207,7 @@
}
},
"LIST_PROFILE": {
"SEARCH_PLACEHOLDER": "Search for a profile by its title",
"SEARCH_PLACEHOLDER": "Search for a profile by its username and its entitled",
"CREER_NOUVEAU_PROFIL": "create a new profile",
"IMPORTER_PROFIL": "import a profile",
"LISTE_DES_PROFILS": "List of profiles",
......
......@@ -207,7 +207,7 @@
}
},
"LIST_PROFILE": {
"SEARCH_PLACEHOLDER": "Recherche un profil par son intitulé",
"SEARCH_PLACEHOLDER": "Recherche un profil par son intitulé et son identifiant",
"CREER_NOUVEAU_PROFIL": "créer un nouveau profil",
"IMPORTER_PROFIL": "importer un profil",
"LISTE_DES_PROFILS": "Liste des profils",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment