mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
Add delete notification and loader
This commit is contained in:
@@ -163,12 +163,12 @@ export class PublicationsPage implements OnInit {
|
||||
//this.refreshing()
|
||||
}
|
||||
|
||||
deleteAction(id?: string){
|
||||
async deleteAction(id?: string){
|
||||
|
||||
const loader = this.toastService.loading();
|
||||
|
||||
try {
|
||||
this.publications.DeletePresidentialAction(id).toPromise();
|
||||
await this.publications.DeletePresidentialAction(id).toPromise();
|
||||
this.toastService.successMessage()
|
||||
} catch(e) {
|
||||
this.toastService.badRequest()
|
||||
|
||||
Reference in New Issue
Block a user