mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
save
This commit is contained in:
+1
-3
@@ -382,14 +382,12 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
});
|
});
|
||||||
await modal.present();
|
await modal.present();
|
||||||
modal.onDidDismiss().then( async(res)=>{
|
modal.onDidDismiss().then( async(res)=>{
|
||||||
|
alert('AQUI')
|
||||||
let body = res['data'];
|
let body = res['data'];
|
||||||
if(res['data']) {
|
if(res['data']) {
|
||||||
|
|
||||||
//await this.distartExpedientModal(body);
|
|
||||||
const loader = this.toastService.loading()
|
const loader = this.toastService.loading()
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise();
|
await this.processes.CompleteTask(body).toPromise();
|
||||||
//this.toastService.successMessage('Processo descartado');
|
|
||||||
this.goBack();
|
this.goBack();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Processo não descartado')
|
this.toastService.badRequest('Processo não descartado')
|
||||||
|
|||||||
@@ -325,12 +325,9 @@ export class OptsExpedientePage implements OnInit {
|
|||||||
console.log(res['data']);
|
console.log(res['data']);
|
||||||
let body = res['data'];
|
let body = res['data'];
|
||||||
if(res['data']){
|
if(res['data']){
|
||||||
console.log('open discart')
|
|
||||||
//this.distartExpedientModal(body);
|
|
||||||
const loader = this.toastService.loading()
|
const loader = this.toastService.loading()
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise();
|
await this.processes.CompleteTask(body).toPromise();
|
||||||
this.toastService.successMessage('Processo descartado');
|
|
||||||
this.goBack();
|
this.goBack();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest('Processo não descartado')
|
this.toastService.badRequest('Processo não descartado')
|
||||||
|
|||||||
Reference in New Issue
Block a user