This commit is contained in:
tiago.kayaya
2021-07-01 11:08:04 +01:00
parent d4887c1958
commit 44e1927246
13 changed files with 100 additions and 165 deletions
@@ -10,9 +10,8 @@ import { ToastService } from 'src/app/services/toast.service';
})
export class EditActionPage implements OnInit {
@Input() folderId: string;
folder: PublicationFolder;
segment:string;
@Input() folderId: string;
@Output() closeDesktopComponent= new EventEmitter<any>();
constructor(
@@ -23,8 +22,6 @@ export class EditActionPage implements OnInit {
}
ngOnInit() {
console.log(this.folderId);
this.getPublicationDetail();
}
@@ -39,26 +36,24 @@ export class EditActionPage implements OnInit {
}
async save(){
console.log(this.folder);
this.folder = {
ProcessId: null,
let body = {
ProcessId: this.folderId,
Description: this.folder.Description,
Detail: this.folder.Detail,
DateBegin: this.folder.DateBegin,
DateEnd: this.folder.DateEnd,
ActionType: this.folder.ActionType,
}
console.log(this.folder);
console.log(body);
/* try {
await this.publicationsService.UpdatePresidentialAction(this.folder).toPromise()
try {
await this.publicationsService.UpdatePresidentialAction(body).toPromise()
this.close();
this.toastService.successMessage('Acção presidencial criada')
} catch (error) {
this.toastService.badRequest('Não foi possivel criar a acção presidencial')
}
*/
}
}