mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
change page redirect in gabinete method despachos-pr
This commit is contained in:
@@ -276,7 +276,6 @@ export class DespachoPrPage implements OnInit {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.close();
|
|
||||||
this.toastService._successMessage()
|
this.toastService._successMessage()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService._badRequest()
|
this.toastService._badRequest()
|
||||||
@@ -303,7 +302,6 @@ export class DespachoPrPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.toastService._successMessage('Processo arquivado')
|
this.toastService._successMessage('Processo arquivado')
|
||||||
this.close();
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService._badRequest('Processo não arquivado')
|
this.toastService._badRequest('Processo não arquivado')
|
||||||
}
|
}
|
||||||
@@ -326,7 +324,6 @@ export class DespachoPrPage implements OnInit {
|
|||||||
}).toPromise()
|
}).toPromise()
|
||||||
|
|
||||||
this.toastService._successMessage('Processo criado')
|
this.toastService._successMessage('Processo criado')
|
||||||
this.close();
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService._badRequest('Processo não criado')
|
this.toastService._badRequest('Processo não criado')
|
||||||
}
|
}
|
||||||
@@ -352,7 +349,6 @@ export class DespachoPrPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.toastService._successMessage('')
|
this.toastService._successMessage('')
|
||||||
this.close();
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService._badRequest()
|
this.toastService._badRequest()
|
||||||
}
|
}
|
||||||
@@ -379,7 +375,6 @@ export class DespachoPrPage implements OnInit {
|
|||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise()
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
this.toastService._successMessage()
|
this.toastService._successMessage()
|
||||||
this.close();
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService._badRequest()
|
this.toastService._badRequest()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user