This commit is contained in:
tiago.kayaya
2021-04-07 10:20:01 +01:00
parent 370dce7bf9
commit 59f768488f
2 changed files with 3 additions and 3 deletions
@@ -22,7 +22,7 @@ export class PublicationDetailPage implements OnInit {
private publications:PublicationsService, private publications:PublicationsService,
) { ) {
this.publicationId = this.navParams.get('publicationId'); this.publicationId = this.navParams.get('publicationId');
/* this.folderId = this.navParams.get('folderIdId'); */ this.folderId = this.navParams.get('folderId');
this.publication = { this.publication = {
DateIndex: null, DateIndex: null,
DocumentId: '', DocumentId: '',
@@ -78,7 +78,6 @@ export class PublicationDetailPage implements OnInit {
deletePost(){ deletePost(){
this.publications.DeletePublication(this.folderId, this.publicationId).then(res =>{ this.publications.DeletePublication(this.folderId, this.publicationId).then(res =>{
console.log(res); console.log(res);
}); });
this.close(); this.close();
} }
@@ -107,13 +107,14 @@ export class ViewPublicationsPage implements OnInit {
component: PublicationDetailPage, component: PublicationDetailPage,
componentProps:{ componentProps:{
publicationId: publicationId, publicationId: publicationId,
folderId: this.folderId,
}, },
cssClass: 'publication-detail', cssClass: 'publication-detail',
backdropDismiss: false backdropDismiss: false
}); });
await modal.present(); await modal.present();
modal.onDidDismiss().then(()=>{ modal.onDidDismiss().then(()=>{
this.doRefresh(event); this.getPublications();
}); });
} }