This commit is contained in:
Peter Maquiran
2021-06-30 12:03:28 +01:00
17 changed files with 70 additions and 157 deletions
@@ -127,23 +127,26 @@ export class EditEventToApproveComponent implements OnInit {
this.isEventEdited = false;
this.getTask()
this.dateControlStart = new FormControl(moment(new Date()));
this.dateControlEnd = new FormControl(moment(new Date()));
}
ngOnInit() {
this.getTask()
console.log('HERE');
}
async getTask() {
console.log('this.eventProcess', this.eventProcess);
const result = await this.processes.GetTask(this.serialNumber).subscribe( result =>{
this.eventProcess = result
this.restoreDatepickerData()
console.log(this.eventProcess.workflowInstanceDataFields.Subject)
// description
let body : any =this.eventProcess.workflowInstanceDataFields.Body.replace(/<[^>]+>/g, '')
this.eventProcess.workflowInstanceDataFields.Body = body
@@ -169,10 +172,6 @@ export class EditEventToApproveComponent implements OnInit {
})
}
ngOnInit() {
}
close() {
@@ -49,20 +49,14 @@ export class NewActionPage implements OnInit {
try {
await this.publication.CreatePublicationFolder(this.folder).toPromise()
this.close();
this.toastService.successMessage('Publicação criado')
this.toastService.successMessage('Acção presidencial criada')
} catch (error) {
this.toastService.badRequest('Publicação não criado')
this.toastService.badRequest('Não foi possivel criar a acção presidencial')
}
}
close(){
this.closeDesktopComponent.emit();
}
}