-
+
diff --git a/src/app/dashboard/dashboard.component.ts b/src/app/dashboard/dashboard.component.ts
index 2ddc58f..3fd934a 100644
--- a/src/app/dashboard/dashboard.component.ts
+++ b/src/app/dashboard/dashboard.component.ts
@@ -11,11 +11,8 @@ import { async } from 'rxjs/internal/scheduler/async';
})
export class DashboardComponent implements OnInit {
- Search = '';
-
-
+ FilterSearch = '';
-
getColorDay(days){
console.log(days)
diff --git a/src/app/dashboard/filter.pipe.ts b/src/app/dashboard/filter.pipe.ts
index fee8cf4..0f1f71d 100644
--- a/src/app/dashboard/filter.pipe.ts
+++ b/src/app/dashboard/filter.pipe.ts
@@ -5,18 +5,23 @@ import { Pipe, PipeTransform } from '@angular/core';
})
export class FilterPipe implements PipeTransform {
- transform(value: any, filterString: string, propName: string): any {
+ transform(value: any, filterString: string, propName: any): any {
+ console.log('propName: ', propName);
if (value.length === 0) {
return value;
}
const resultArray = [];
for (const item of value) {
- if (item[propName] === filterString) {
+ console.log('item: ', item);
+ var string1 = item['team'].toLowerCase() + item['COMMENT'].toLowerCase() + item['custgroupName'].toLowerCase();
+ var string2 = filterString.toLowerCase();
+ if (string1.indexOf(string2) > -1) {
resultArray.push(item);
}
-
}
+
+
return resultArray;
}
--
libgit2 0.21.2