move load bar in gabinete digital to top

This commit is contained in:
tiago.kayaya
2022-01-18 18:53:58 +01:00
parent 2e7bfb3f91
commit 7c4357b651
5 changed files with 19 additions and 15 deletions
@@ -21,7 +21,7 @@
</ion-header>
<ion-content>
<div class="width-100 overflow-y-auto height-100" [ngSwitch]="segment">
<div class="main-container width-100 overflow-y-auto height-100" [ngSwitch]="segment">
<div *ngIf="deplomasStore.diplomasList.length >= 1">
<ion-list *ngSwitchCase="'validar'">
@@ -1,10 +1,11 @@
@import '~src/function.scss';
/* CONTENT */
:host{
/* :host{
padding: 30px 20px 0 20px !important;
margin: 0;
}
} */
.title{
padding: 30px 20px 0 20px !important;
font-family: Roboto;
font-size: 25px;
color:#000;
@@ -19,6 +20,11 @@
float: right;
}
}
.main-container{
padding: 0px 20px 0 20px !important;
margin: 0;
color:#000;
}
.item-list-small{
font-size: 11px;
overflow: hidden;
@@ -42,7 +42,7 @@ constructor(
ngOnInit() {
// update list
this.LoadList()
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')) {
@@ -53,7 +53,7 @@ constructor(
}
});
}
segmentChanged(ev: any) {
@@ -69,7 +69,8 @@ constructor(
}
async LoadList() {
this.skeletonLoader = true;
let diplomas = await this.processes.GetTasksList("Despacho do Presidente da República", false).toPromise();
this.diplomasList = [];