This commit is contained in:
tiago.kayaya
2021-07-14 15:23:45 +01:00
parent 732fff2025
commit 9a39b767dd
18 changed files with 196 additions and 146 deletions
@@ -293,6 +293,7 @@ export class ApproveEventPage implements OnInit {
modal.onDidDismiss().then(res => {
this.getTask();
this.goBack();
});
}
@@ -33,11 +33,10 @@ export class EventListPage implements OnInit {
ngOnInit() {
this.segment = 'MDGPR';
this.LoadToApproveEvents();
this.refreshing();
const pathname = window.location.pathname
this.router.events.forEach((event) => {
if(event instanceof NavigationEnd && event.url == pathname) {
this.LoadToApproveEvents();
@@ -55,7 +54,7 @@ export class EventListPage implements OnInit {
LoadToApproveEvents(){
this.showLoader = true;
this.processes.GetToApprovedEvents('PR','false').subscribe(res=>{
this.showLoader = false;
this.eventsPRList = res;
@@ -80,7 +79,7 @@ export class EventListPage implements OnInit {
goToEventToApproveDetail(serialNumber:string){
console.log(serialNumber);
/* let navigationExtras: NavigationExtras = {
queryParams: {
"serialNumber": serialNumber,
@@ -97,6 +96,12 @@ export class EventListPage implements OnInit {
//this.router.navigate(['/home/gabinete-digital/event-list/approve-event'], navigationExtras)
}
refreshing() {
setTimeout(() => {
this.LoadToApproveEvents();
}, 1500);
}
doRefresh(event) {
this.LoadToApproveEvents();
setTimeout(() => {