mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
47 lines
1.1 KiB
TypeScript
47 lines
1.1 KiB
TypeScript
import { Component, EventEmitter, OnInit, Output } from '@angular/core';
|
|
import { PublicationFolder } from 'src/app/models/publicationfolder';
|
|
|
|
@Component({
|
|
selector: 'app-edit-action',
|
|
templateUrl: './edit-action.page.html',
|
|
styleUrls: ['./edit-action.page.scss'],
|
|
})
|
|
export class EditActionPage implements OnInit {
|
|
|
|
folder: PublicationFolder;
|
|
@Output() closeDesktopComponent= new EventEmitter<any>();
|
|
|
|
constructor() {
|
|
this.folder = new PublicationFolder();
|
|
}
|
|
|
|
ngOnInit() {
|
|
}
|
|
|
|
close(){
|
|
this.closeDesktopComponent.emit();
|
|
}
|
|
|
|
save(){
|
|
/* this.folder = {
|
|
ProcessId: null,
|
|
Description: this.folder.Description,
|
|
Detail: this.folder.Detail,
|
|
DateBegin: this.folder.DateBegin,
|
|
DateEnd: this.folder.DateEnd,
|
|
ActionType: this.segment,
|
|
}
|
|
console.log(this.folder);
|
|
|
|
try {
|
|
await this.publication.CreatePublicationFolder(this.folder).toPromise()
|
|
this.close();
|
|
this.toastService.successMessage('Acção presidencial criada')
|
|
} catch (error) {
|
|
this.toastService.badRequest('Não foi possivel criar a acção presidencial')
|
|
} */
|
|
|
|
}
|
|
|
|
}
|