mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
save
This commit is contained in:
+13
-1
@@ -224,7 +224,18 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
modal.onDidDismiss().then( async(res)=>{
|
modal.onDidDismiss().then( async(res)=>{
|
||||||
let body = res['data'];
|
let body = res['data'];
|
||||||
if(res['data']) {
|
if(res['data']) {
|
||||||
await this.distartExpedientModal(body);
|
|
||||||
|
//await this.distartExpedientModal(body);
|
||||||
|
const loader = this.toastService.loading()
|
||||||
|
try {
|
||||||
|
await this.processes.CompleteTask(body).toPromise();
|
||||||
|
//this.toastService.successMessage('Processo descartado');
|
||||||
|
this.goBack();
|
||||||
|
} catch (error) {
|
||||||
|
this.toastService.badRequest('Processo não descartado')
|
||||||
|
} finally {
|
||||||
|
loader.remove()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
this.close();
|
this.close();
|
||||||
@@ -275,6 +286,7 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if(res['data']== 'Yes'){
|
if(res['data']== 'Yes'){
|
||||||
|
|
||||||
const loader = this.toastService.loading()
|
const loader = this.toastService.loading()
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise();
|
await this.processes.CompleteTask(body).toPromise();
|
||||||
|
|||||||
@@ -7,6 +7,6 @@
|
|||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<button (click)="close()" full class="btn-cancel" shape="round" >Cancelar</button>
|
<button (click)="close()" full class="btn-cancel" shape="round" >Cancelar</button>
|
||||||
<div class="solid"></div>
|
<div class="solid"></div>
|
||||||
<button (click)="closeChatRoom()" full class="btn-delete" shape="round" >Apagar conversa</button>
|
<button hidden (click)="closeChatRoom()" full class="btn-delete" shape="round" >Apagar conversa</button>
|
||||||
</div>
|
</div>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|||||||
Reference in New Issue
Block a user