mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
save
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user