improve counter

This commit is contained in:
Peter Maquiran
2021-07-30 14:01:50 +01:00
parent 0ca64d0c35
commit 6ba0f02de4
5 changed files with 59 additions and 2 deletions
+2 -1
View File
@@ -15,7 +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">{{totalExpediente}}</ion-badge>
<ion-badge color="danger" *ngIf="p.userRole(['MDGPR'])" >{{documentCounterService.mdTotalDocument}}</ion-badge>
<ion-badge color="danger" *ngIf="p.userRole(['PR'])" >0</ion-badge>
<ion-label>Gabinete</ion-label>
</ion-tab-button>
<ion-tab-button tab="publications">
+5 -1
View File
@@ -11,6 +11,8 @@ import { ModalController, AlertController, AnimationController, Platform } from
import { NavigationExtras,Router,ActivatedRoute } from '@angular/router';
import { ToastService } from '../services/toast.service';
import { ToDayEventStorage } from '../store/to-day-event-storage.service';
import { DocumentCounterService } from 'src/app/OtherService/document-counter.service'
import { PermissionService } from '../OtherService/permission.service';
// import * as Sentry from "@sentry/browser";
// import { Integrations } from "@sentry/tracing";
@@ -68,7 +70,9 @@ export class HomePage implements OnInit {
public modalCtrl: AlertController,
private notificatinsservice: NotificationsService,
private platform: Platform,
private activeroute: ActivatedRoute) {
private activeroute: ActivatedRoute,
public documentCounterService: DocumentCounterService,
public p: PermissionService) {
this.router.events.subscribe((val) => {
document.querySelectorAll('ion-modal').forEach((e: any) => e.remove())