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