mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
save
This commit is contained in:
@@ -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')
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user