improve publicações

This commit is contained in:
Peter Maquiran
2023-01-02 15:42:15 +01:00
parent 3e110c9e93
commit f7aae9aa00
7 changed files with 40 additions and 67 deletions
@@ -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;