mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
-add start direct message method from mobile App
- more improvements
This commit is contained in:
@@ -5,15 +5,15 @@ import { Pipe, PipeTransform } from '@angular/core';
|
||||
})
|
||||
export class FilterPipe implements PipeTransform {
|
||||
|
||||
transform(contatcs: any[], text:string, column:string): any {
|
||||
|
||||
transform(array: any[], text:string, column:string): any {
|
||||
|
||||
if(text === ''){
|
||||
return contatcs;
|
||||
return array;
|
||||
}
|
||||
|
||||
text = text.toLowerCase();
|
||||
|
||||
return contatcs.filter(item =>{
|
||||
return array.filter(item =>{
|
||||
return item[column].toLowerCase().includes(text);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user