This commit is contained in:
tiago.kayaya
2021-06-30 16:12:47 +01:00
parent 8b3474f02d
commit 8feb2a4f6e
11 changed files with 350 additions and 5 deletions
@@ -0,0 +1,46 @@
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')
} */
}
}