mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
save
This commit is contained in:
@@ -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)
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user