mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
show all options to event to approve
This commit is contained in:
@@ -114,6 +114,7 @@ export class ApproveEventPage implements OnInit {
|
||||
}
|
||||
|
||||
async approveTask(serialNumber: string) {
|
||||
alert("lll")
|
||||
let body = { "serialNumber": serialNumber, "action": "Aprovar" }
|
||||
|
||||
const loader = this.toastService.loading()
|
||||
@@ -143,10 +144,10 @@ export class ApproveEventPage implements OnInit {
|
||||
|
||||
|
||||
const loader = this.toastService.loading()
|
||||
const result = await this.agendaDataRepository.eventToaprovalStatus(serialNumber, 'Declined', "")//.subscribe((value) => {
|
||||
const result = await this.agendaDataRepository.deleteEvent(serialNumber, true)//.subscribe((value) => {
|
||||
|
||||
if(result.isOk()) {
|
||||
this.httpErroHandle.httpsSucessMessagge('Rejeitar');
|
||||
this.httpErroHandle.httpsSucessMessagge('delete event');
|
||||
this.TaskService.loadEventosParaAprovacao();
|
||||
|
||||
this.close()
|
||||
|
||||
Reference in New Issue
Block a user