mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
fix
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
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'
|
||||
@@ -8,6 +8,7 @@ import { TaskService } from 'src/app/services/task.service'
|
||||
selector: 'app-all-processes',
|
||||
templateUrl: './all-processes.page.html',
|
||||
styleUrls: ['./all-processes.page.scss'],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
})
|
||||
export class AllProcessesPage implements OnInit {
|
||||
|
||||
@@ -42,6 +43,7 @@ export class AllProcessesPage implements OnInit {
|
||||
private router: Router,
|
||||
public ThemeService: ThemeService,
|
||||
public TaskService: TaskService,
|
||||
private cdr: ChangeDetectorRef
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
@@ -84,6 +86,7 @@ export class AllProcessesPage implements OnInit {
|
||||
async closeSearch() {
|
||||
this.searchSubject = ''
|
||||
this.dynamicSearch()
|
||||
this.cdr.markForCheck()
|
||||
}
|
||||
|
||||
async basicSearch() {
|
||||
@@ -94,8 +97,9 @@ export class AllProcessesPage implements OnInit {
|
||||
reorderList(orderBy: string) {
|
||||
|
||||
this.ordinance = orderBy;
|
||||
this.cdr.markForCheck()
|
||||
|
||||
this.dynamicSearch();
|
||||
this.dynamicSearch();
|
||||
}
|
||||
|
||||
async dynamicSearch() {
|
||||
@@ -113,6 +117,8 @@ export class AllProcessesPage implements OnInit {
|
||||
const AllProcess = this.TaskService.AllProcess
|
||||
this.AllProcess = this.TaskService.reorderList(this.ordinance, AllProcess)
|
||||
}
|
||||
|
||||
this.cdr.markForCheck()
|
||||
}
|
||||
|
||||
checkFilter() {
|
||||
@@ -125,6 +131,8 @@ export class AllProcessesPage implements OnInit {
|
||||
} else if (this.router.url.includes('unread')) {
|
||||
this.filterName = 'Não lidos'
|
||||
}
|
||||
|
||||
this.cdr.markForCheck()
|
||||
}
|
||||
|
||||
|
||||
@@ -167,6 +175,8 @@ export class AllProcessesPage implements OnInit {
|
||||
else {
|
||||
throw(`${workflowName} && ${activityName} no route`)
|
||||
}
|
||||
|
||||
this.cdr.markForCheck()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user