mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
issue861
This commit is contained in:
@@ -28,12 +28,7 @@
|
||||
|
||||
<div class="main-content">
|
||||
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
||||
<ion-refresher-content
|
||||
pullingIcon="chevron-down-circle-outline"
|
||||
pullingText="deslize para actualizar"
|
||||
refreshingSpinner="circles"
|
||||
refreshingText="A actualizar...">
|
||||
</ion-refresher-content>
|
||||
<ion-refresher-content></ion-refresher-content>
|
||||
</ion-refresher>
|
||||
|
||||
<div class="width-100" [ngSwitch]="segment">
|
||||
|
||||
@@ -41,7 +41,6 @@ constructor(
|
||||
ngOnInit() {
|
||||
this.router.events.forEach((event) => {
|
||||
if(event instanceof NavigationEnd && event.url == this.router.url) {
|
||||
console.log('Atualiza');
|
||||
this.refreshing();
|
||||
}
|
||||
});
|
||||
@@ -172,7 +171,8 @@ constructor(
|
||||
"activityInstanceName": element.activityInstanceName,
|
||||
}
|
||||
this.diplomasList.push(task);
|
||||
this.diplomasList = removeDuplicate( this.diplomasList)
|
||||
this.diplomasList = removeDuplicate(this.diplomasList);
|
||||
this.diplomasList = this.sortArrayISODate(this.diplomasList).reverse();
|
||||
|
||||
});
|
||||
this.showLoader = false;
|
||||
@@ -202,13 +202,20 @@ constructor(
|
||||
"activityInstanceName": element.activityInstanceName,
|
||||
}
|
||||
this.diplomasList.push(task);
|
||||
this.diplomasList = removeDuplicate( this.diplomasList)
|
||||
|
||||
this.diplomasList = removeDuplicate(this.diplomasList);
|
||||
this.diplomasList = this.sortArrayISODate(this.diplomasList).reverse();
|
||||
|
||||
});
|
||||
this.showLoader = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sortArrayISODate(myArray: any) {
|
||||
return myArray.sort(function(a, b) {
|
||||
return (a.CreateDate < b.CreateDate) ? -1 : ((a.CreateDate > b.CreateDate) ? 1 : 0);
|
||||
});
|
||||
}
|
||||
|
||||
async refreshing() {
|
||||
setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user