This commit is contained in:
Peter Maquiran
2022-05-27 13:36:37 +01:00
parent 304975d823
commit ce7cee0876
25 changed files with 131 additions and 234 deletions
@@ -3,16 +3,6 @@
<div class="div-title">
<ion-label class="title">Editar acção presidencial</ion-label>
</div>
<!-- <div class="actionType">
<ion-segment [(ngModel)]="segment" (ionChange)="segmentChanged($event)">
<ion-segment-button value="Viagem">
<ion-label>Viagem</ion-label>
</ion-segment-button>
<ion-segment-button value="Evento">
<ion-label>Evento</ion-label>
</ion-segment-button>
</ion-segment>
</div> -->
</div>
</ion-header>
@@ -24,6 +24,7 @@
<div class="div-title flex-grow-1">
<ion-label class="title ">Acções Presidenciais</ion-label>
</div>
<div class="div-icon">
<button *ngIf="p.userPermission([p.permissionList.Actions.create])" title="Adicionar nova ação presidencial" class="btn-no-color" (click)="AddPublicationFolder()">
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " slot="icon-only" src='assets/images/icons-add.svg'></ion-icon>
@@ -34,6 +35,9 @@
</button>
</div>
</div>
<ion-progress-bar type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
</div>
</ion-toolbar>
<!-- Content -->
@@ -230,7 +230,7 @@ export class PublicationsPage implements OnInit {
this.showLoader = false;
});
});
this.storage.get('actionsViagens').then((viagens) => {
this.storage.get('actionsViagens').then((viagens = []) => {
viagens.forEach(data => {
let folder: PublicationFolder = {