This commit is contained in:
tiago.kayaya
2021-06-30 11:00:59 +01:00
parent c81d4eaf1e
commit fa0abcec30
5 changed files with 24 additions and 18 deletions
@@ -46,11 +46,11 @@ export class NewActionPage implements OnInit {
console.log(this.folder);
try {
await this.publication.CreatePublicationFolder(this.folder).toPromise()
this.toastService.successMessage("Ação presidencial criado")
await this.publication.CreatePublicationFolder(this.folder).toPromise();
this.toastService.successMessage("Ação presidencial criado");
this.close();
} catch (error) {
this.toastService.badRequest("Ação presidencial não criado")
this.toastService.badRequest("Ação presidencial não criado");
}
}