add document counting

This commit is contained in:
Peter Maquiran
2021-08-18 12:58:01 +01:00
parent 7fe82be2d9
commit e4881a535f
3 changed files with 5 additions and 4 deletions
@@ -32,6 +32,8 @@ export class DocumentCounterService {
}
get prTotalDocument() {
return 0
return this.despachoStore.count + this.expedienteGbStore.count + this.pedidosStore.countdeferimento
+ this.pedidosStore.countparecer + this.expedientePrStore.count + this.despachoPrStore.count + this.pendentesStore.count
+ this.eventoAprovacaoStore.count + this.deplomasStore.diplomasListCount + this.deplomasStore.countDiplomasListCount
}
}
+2 -2
View File
@@ -15,8 +15,8 @@
<ion-tab-button tab="gabinete-digital">
<!-- <ion-icon name="file-tray-stacked"></ion-icon> -->
<ion-icon class="nav-icon" src="assets/images/icons-nav-gabinete-inactive.svg"></ion-icon>
<ion-badge color="danger" *ngIf="p.userRole(['MDGPR'])" >{{documentCounterService.mdTotalDocument}}</ion-badge>
<ion-badge color="danger" *ngIf="p.userRole(['PR'])" >0</ion-badge>
<ion-badge color="danger" *ngIf="p.userRole(['MDGPR'])" >{{ documentCounterService.mdTotalDocument }}</ion-badge>
<ion-badge color="danger" *ngIf="p.userRole(['PR'])" >{{ documentCounterService.prTotalDocument }}</ion-badge>
<ion-label>Gabinete</ion-label>
</ion-tab-button>
<ion-tab-button tab="publications">
@@ -139,7 +139,6 @@ export class ExpedientePrPage implements OnInit {
});
}
async LoadTaskDetail(serial: string) {
this.processes.GetTask(serial).subscribe(res => {