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
+1 -1
View File
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<manifest package="com.gpr.gabinetedigital" xmlns:android="http://schemas.android.com/apk/res/android">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
@@ -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)