fix actions and draft data object

This commit is contained in:
Peter Maquiran
2024-01-17 10:25:16 +01:00
parent 69ee75b039
commit 4314ae1bff
35 changed files with 556 additions and 305 deletions
@@ -1,8 +1,8 @@
import { Component, OnInit, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
import { NavigationEnd, Router } from '@angular/router';
import { LoginUserRespose } from 'src/app/models/user.model';
import { ThemeService } from 'src/app/services/theme.service'
import { TaskService } from 'src/app/services/task.service'
import { ThemeService } from 'src/app/services/theme.service';
import { TaskService } from 'src/app/services/task.service';
@Component({
selector: 'app-all-processes',
@@ -17,7 +17,7 @@ export class AllProcessesPage implements OnInit {
hideSearchBtn: boolean = false;
showSearch = false;
searchSubject: string = '';
filterName: 'Para hoje' | 'Novos'| 'Lidos'| 'Não lidos'| 'OverdueTasks' | 'Todos' = 'Todos'
/* miniSearch = new MiniSearch({
@@ -28,7 +28,7 @@ export class AllProcessesPage implements OnInit {
AllProcess = []
ordinance: string = 'old'
/**
* @description Update List subcription
*/
@@ -55,7 +55,7 @@ export class AllProcessesPage implements OnInit {
funx:() => {
this.dynamicSearch()
}
})
@@ -103,13 +103,13 @@ export class AllProcessesPage implements OnInit {
this.ordinance = orderBy;
this.cdr.markForCheck()
this.dynamicSearch();
this.dynamicSearch();
}
async dynamicSearch() {
if(this.showSearch && this.searchSubject) {
const AllProcess = this.TaskService.AllProcess.filter((task) => {
let subject = task.Folio || task.Subject || task.workflowInstanceDataFields.Subject
subject = subject.toLowerCase();
@@ -137,7 +137,7 @@ export class AllProcessesPage implements OnInit {
}
this.cdr.markForCheck()
}
}
goToProcess(serialNumber: string, workflowName: string, activityName: string) {