mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
Improve segments
This commit is contained in:
@@ -1,13 +1,16 @@
|
|||||||
<ion-header class="ion-no-border1">
|
<ion-header class="ion-no-border1">
|
||||||
<div class="main-header">
|
<div class="main-header">
|
||||||
<div class="thetitle"><ion-label >Despachos Presidenciais</ion-label></div>
|
<div class="thetitle">
|
||||||
|
<ion-label *ngIf="loggeduser.Profile =='MDGPR'" >Despachos Presidenciais</ion-label>
|
||||||
|
<ion-label *ngIf="loggeduser.Profile =='PR'" >Despachos</ion-label>
|
||||||
|
</div>
|
||||||
<div class="theicon">
|
<div class="theicon">
|
||||||
<button class="btn-no-color" (click)="doRefresh($event)">
|
<button class="btn-no-color" (click)="doRefresh($event)">
|
||||||
<ion-icon slot="end" class="title-icon" name="reload-circle"></ion-icon>
|
<ion-icon slot="end" class="title-icon" name="reload-circle"></ion-icon>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottom-title d-flex"><h3 class="bottom-text">Presidente da República</h3></div>
|
<div *ngIf="loggeduser.Profile =='MDGPR'" class="bottom-title d-flex"><h3 class="bottom-text">Presidente da República</h3></div>
|
||||||
</ion-header>
|
</ion-header>
|
||||||
<ion-content>
|
<ion-content>
|
||||||
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ import { DiscartExpedientModalPage } from 'src/app/pages/gabinete-digital/discar
|
|||||||
|
|
||||||
import { AuthService } from 'src/app/services/auth.service';
|
import { AuthService } from 'src/app/services/auth.service';
|
||||||
import { DespachoPage } from 'src/app/pages/gabinete-digital/despachos/despacho/despacho.page';
|
import { DespachoPage } from 'src/app/pages/gabinete-digital/despachos/despacho/despacho.page';
|
||||||
|
import { User } from 'src/app/models/user.model';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-despachos-pr',
|
selector: 'app-despachos-pr',
|
||||||
@@ -44,18 +45,23 @@ export class DespachosPrPage implements OnInit {
|
|||||||
dicIndex = 0;
|
dicIndex = 0;
|
||||||
inicial = false
|
inicial = false
|
||||||
|
|
||||||
|
loggeduser: User;
|
||||||
|
|
||||||
constructor (
|
constructor (
|
||||||
private processes:ProcessesService,
|
private processes:ProcessesService,
|
||||||
private modalController: ModalController,
|
private modalController: ModalController,
|
||||||
private alertService: AlertService,
|
private alertService: AlertService,
|
||||||
private authService: AuthService,
|
private authService: AuthService,
|
||||||
private navParams: NavParams
|
private navParams: NavParams,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
this.loggeduser = authService.ValidatedUser;
|
||||||
this.profile = this.navParams.get('profile') || 'mdgpr';
|
this.profile = this.navParams.get('profile') || 'mdgpr';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|
||||||
//Inicializar segment
|
//Inicializar segment
|
||||||
this.segment = "despachos";
|
this.segment = "despachos";
|
||||||
this.LoadList();
|
this.LoadList();
|
||||||
|
|||||||
@@ -1,13 +1,16 @@
|
|||||||
<ion-header class="ion-no-border1">
|
<ion-header class="ion-no-border1">
|
||||||
<div class="main-header">
|
<div class="main-header">
|
||||||
<div class="thetitle"><ion-label >Despachos Presidenciais</ion-label></div>
|
<div class="thetitle">
|
||||||
|
<ion-label *ngIf="loggeduser.Profile =='MDGPR'" >Despachos Presidenciais</ion-label>
|
||||||
|
<ion-label *ngIf="loggeduser.Profile =='PR'" >Despachos</ion-label>
|
||||||
|
</div>
|
||||||
<div class="theicon">
|
<div class="theicon">
|
||||||
<button class="btn-no-color" (click)="doRefresh($event)">
|
<button class="btn-no-color" (click)="doRefresh($event)">
|
||||||
<ion-icon slot="end" class="title-icon" name="reload-circle"></ion-icon>
|
<ion-icon slot="end" class="title-icon" name="reload-circle"></ion-icon>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottom-title d-flex"><h3 class="bottom-text">Presidente da República</h3></div>
|
<div *ngIf="loggeduser.Profile =='MDGPR'" class="bottom-title d-flex"><h3 class="bottom-text">Presidente da República</h3></div>
|
||||||
</ion-header>
|
</ion-header>
|
||||||
<ion-content>
|
<ion-content>
|
||||||
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
||||||
|
|||||||
Reference in New Issue
Block a user