bugs before presantation

This commit is contained in:
Eudes Inácio
2024-01-31 17:13:07 +01:00
parent 07939149ee
commit 5fee98c235
10 changed files with 198 additions and 178 deletions
@@ -98,6 +98,7 @@ export class PublicationsPage implements OnInit {
this.hideRefreshButton();
this.intent = window["sharedContent"]
window["refreshPublication"] = this.refreshing
}
@@ -124,7 +125,7 @@ export class PublicationsPage implements OnInit {
}
}
refreshing() {
refreshing = () => {
setTimeout(() => {
this.getActions();
}, 1500);
@@ -300,6 +301,9 @@ export class PublicationsPage implements OnInit {
const loader = this.toastService.loading();
try {
await this.publications.DeletePresidentialAction(id).toPromise();
if(window["refreshPublication"]) {
window["refreshPublication"]();
}
this.toastService._successMessage()
} catch (error) {
if(error.status == 0) {