mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
improve publicações
This commit is contained in:
@@ -89,6 +89,7 @@ export class PublicationsPage implements OnInit {
|
||||
}
|
||||
});
|
||||
this.hideRefreshButton();
|
||||
this.getFromDB()
|
||||
|
||||
}
|
||||
|
||||
@@ -144,7 +145,6 @@ export class PublicationsPage implements OnInit {
|
||||
this.loadList = true
|
||||
this.showLoader = true;
|
||||
this.skeletonLoader = true;
|
||||
this.getFromDB()
|
||||
this.publications.GetPublicationFolderList().subscribe(async res => {
|
||||
|
||||
const folders: PublicationFolder[] = this.getPublicationFolderMap(res)
|
||||
@@ -155,9 +155,10 @@ export class PublicationsPage implements OnInit {
|
||||
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
|
||||
await this.storage.set('actionsEvents', this.publicationsEventFolderList);
|
||||
await this.storage.set('actionsViagens', this.publicationsTravelFolderList);
|
||||
this.getFromDB()
|
||||
} else {
|
||||
this.getFromDB()
|
||||
folders.forEach((folder)=> {
|
||||
this.addActionToDB(folder);
|
||||
})
|
||||
}
|
||||
|
||||
this.showLoader = false;
|
||||
|
||||
Reference in New Issue
Block a user