mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
fix actions and draft data object
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user