This commit is contained in:
tiago.kayaya
2021-07-22 16:18:49 +01:00
parent d9a38ae98e
commit 3fdadd2668
@@ -19,7 +19,7 @@ export class ViewPublicationsPage implements OnInit {
showLoader = true;
loading: any;
publicationList: Publication[];
publicationList: Publication[] = new Array();
item: PublicationFolder;
folderId:string;
error: any;
@@ -54,8 +54,10 @@ export class ViewPublicationsPage implements OnInit {
this.folderId = this.folderId['ProcessId']
}
this.getPublications();
this.getPublicationDetail();
setTimeout(() => {
this.getPublications();
}, 3000);
}
ngOnChanges() {
@@ -64,15 +66,14 @@ export class ViewPublicationsPage implements OnInit {
this.folderId = this.folderId['ProcessId']
}
this.getPublications();
this.getPublicationDetail();
this.getPublications();
}
doRefresh(event) {
this.getPublications();
setTimeout(() => {
this.getPublicationDetail();
this.getPublications();
event.target.complete();
}, 3000);
@@ -120,8 +121,7 @@ export class ViewPublicationsPage implements OnInit {
"OriginalFileName": '',
"FileExtension": '',
}
// this.publicationList.push(item);
this.publicationList.push(item);
data.push(item)
});