This commit is contained in:
Peter Maquiran
2023-06-12 11:56:23 +01:00
parent 55b1f488cb
commit 199327a2cb
9 changed files with 376 additions and 11 deletions
+17 -1
View File
@@ -62,7 +62,6 @@ export class TaskService {
private processesbackend: ProcessesService,
private despachoRule: DespachoService,
public eventService: EventsService,
private sortService: SortService,
private router: Router,
) {
@@ -432,4 +431,21 @@ export class TaskService {
}
dynamicSearch({searchSubject, ordinance, list}) {
if(searchSubject) {
const AllProcess = list.filter((task) => {
let subject = task.Folio || task.Subject || task.workflowInstanceDataFields.Subject
subject = subject.toLowerCase();
return subject.includes(searchSubject.toLowerCase())
})
this.AllProcess = list.reorderList(ordinance, AllProcess)
} else {
const AllProcess = list
this.AllProcess = list.reorderList(ordinance, AllProcess)
}
}
}