fix publication load and expediente

This commit is contained in:
Peter Maquiran
2024-03-13 11:52:27 +01:00
parent 48d4cd637e
commit 7f2425ef1b
9 changed files with 2798 additions and 2760 deletions
@@ -33,7 +33,7 @@ export class ExpedientsPage implements OnInit {
listSubscription : {
delete(): void;
}
routerSubscription;
@@ -69,7 +69,7 @@ export class ExpedientsPage implements OnInit {
}
})
this.routerSubscription = this.router.events.subscribe((event) => {
if (event instanceof NavigationStart &&
event.url.startsWith('/home/gabinete-digital?expedientes=true')) {
@@ -81,8 +81,8 @@ export class ExpedientsPage implements OnInit {
this.LoadList()
}
this.dynamicSearch();
}
@@ -91,7 +91,7 @@ export class ExpedientsPage implements OnInit {
this.listSubscription.delete()
this.routerSubscription?.unsubscribe();
}
reorderList(orderBy: string) {
this.ordinance = orderBy;
@@ -103,7 +103,7 @@ export class ExpedientsPage implements OnInit {
async dynamicSearch() {
if(this.showSearch && this.searchSubject) {
const list = this.expedientegbstore.list.filter((task) => {
let subject = task.Folio || task.Subject || task.workflowInstanceDataFields.Subject
subject = subject.toLowerCase();
@@ -143,7 +143,7 @@ export class ExpedientsPage implements OnInit {
this.skeletonLoader = true
this.processes.GetTaskListExpediente(false).subscribe(result => {
let taskslist = [];
this.skeletonLoader = false
@@ -152,7 +152,7 @@ export class ExpedientsPage implements OnInit {
taskslist = res.map((e) => this.expedienteTaskPipe.transform(e))
taskslist = this.sortService.sortDate(taskslist, 'CreateDate')
// this.addProcessTODb(taskslist);
taskslist = taskslist.filter(function(item) {
return item.activityInstanceName != 'Retificar Expediente'
})