mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
Badge expediente is now dynamic
This commit is contained in:
@@ -2,6 +2,7 @@ import { Component, OnInit } from '@angular/core';
|
||||
import { EventsService } from '../services/events.service';
|
||||
import { formatDate } from '@angular/common';
|
||||
import { Event } from '../models/event.model';
|
||||
import { ProcessesService } from '../services/processes.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-home',
|
||||
@@ -11,9 +12,9 @@ import { Event } from '../models/event.model';
|
||||
export class HomePage implements OnInit {
|
||||
eventsList: Event[];
|
||||
totalEvent=0;
|
||||
totalExpediente=2;
|
||||
totalExpediente=0;
|
||||
|
||||
constructor(private eventService: EventsService) { }
|
||||
constructor(private eventService: EventsService, private processesbackend:ProcessesService) { }
|
||||
|
||||
ngOnInit() {
|
||||
this.eventService.getAllEvents(formatDate(new Date(), 'yyyy-MM-dd', 'pt') + ' 00:00:00', formatDate(new Date(), 'yyyy-MM-dd', 'pt') + ' 23:59:59')
|
||||
@@ -23,11 +24,9 @@ export class HomePage implements OnInit {
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
this.processesbackend.GetTasksList("Expediente", true).subscribe(result =>{
|
||||
this.totalExpediente = result;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -30,5 +30,5 @@
|
||||
color:red;
|
||||
}
|
||||
/* .ion-badge{
|
||||
background: red;
|
||||
|
||||
} */
|
||||
Reference in New Issue
Block a user