diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 96d5670a8..8e8816e52 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,5 +1,5 @@ - + diff --git a/src/app/shared/publication/view-publications/view-publications.page.ts b/src/app/shared/publication/view-publications/view-publications.page.ts index a056eecb6..77ed50a2a 100644 --- a/src/app/shared/publication/view-publications/view-publications.page.ts +++ b/src/app/shared/publication/view-publications/view-publications.page.ts @@ -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)