mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
fix delete action
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user