mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
improve
This commit is contained in:
@@ -24,8 +24,6 @@
|
||||
}
|
||||
.bottom-title{
|
||||
width: calc(100% - 40px);
|
||||
margin-left: 20px !important;
|
||||
margin-right: 20px !important;
|
||||
margin: 0 auto;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
@@ -63,8 +63,6 @@ export class DiplomasAssinarPage implements OnInit {
|
||||
|
||||
async LoadList() {
|
||||
|
||||
|
||||
|
||||
this.skeletonLoader = true
|
||||
|
||||
let diplomas = await this.processes.GetTasksList("Despacho do Presidente da República", false).toPromise();
|
||||
@@ -80,7 +78,6 @@ export class DiplomasAssinarPage implements OnInit {
|
||||
|
||||
this.diplomasList = this.sortService.sortDate(this.diplomasList, 'CreateDate')
|
||||
|
||||
|
||||
this.deplomasStore.resetDiplomasParaAssinar(this.diplomasList);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ export class DiplomasPage implements OnInit {
|
||||
this.router.events.forEach((event) => {
|
||||
if (event instanceof NavigationStart && '/home/gabinete-digital?diplomas=true'.startsWith(event.url)) {
|
||||
if(window.location.pathname.split('/').length >= 4 && window.location.pathname.startsWith('/home/gabinete-digital')) {
|
||||
this.refreshing()
|
||||
this.LoadList()
|
||||
} else {
|
||||
this.LoadList()
|
||||
}
|
||||
|
||||
@@ -112,14 +112,18 @@ export class DiplomasGerarOptionsPage implements OnInit {
|
||||
const loader = this.toastService.loading()
|
||||
this.despachoService.sendExpedienteToPending(this.serialNumber).subscribe(res => {
|
||||
this.goBack();
|
||||
this.toastService.successMessage()
|
||||
this.toastService._badRequest("Processo enviado para Pendentes")
|
||||
loader.remove()
|
||||
},
|
||||
error => {
|
||||
loader.remove()
|
||||
this.toastService.badRequest("Processo não enviado para despacho")
|
||||
});
|
||||
|
||||
error => {
|
||||
loader.remove()
|
||||
if(error.status == 0) {
|
||||
this.toastService._badRequest('Sem acesso à internet. Por favor verifique sua conexão')
|
||||
} else {
|
||||
|
||||
this.toastService._badRequest("Processo não enviado para Pendentes")
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user