fix delete action

This commit is contained in:
Peter Maquiran
2024-04-22 08:59:21 +01:00
parent 036b75f4af
commit c62d949128
2 changed files with 4 additions and 6 deletions
@@ -282,16 +282,14 @@ export class ViewPublicationsPage implements OnInit {
},
});
modal.onDidDismiss().then((res) => {
modal.onDidDismiss().then(async (res) => {
if (res.data == 'Yes') {
const loader = this.toastService.loading();
try {
this.publications.DeletePresidentialAction(folderId).toPromise();
await this.publications.DeletePresidentialAction(folderId).toPromise();
this.httpErrorHandle.httpsSucessMessagge('Eliminar Acção')
setTimeout(()=> {
window['updateAction']()
}, 1500)
window['updateAction']()
} catch (error) {
this.httpErrorHandle.httpStatusHandle(error)