mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
tab organization
This commit is contained in:
@@ -60,12 +60,17 @@
|
|||||||
<!-- <ion-segment-button value="MDGPR">
|
<!-- <ion-segment-button value="MDGPR">
|
||||||
Minha agenda
|
Minha agenda
|
||||||
</ion-segment-button> -->
|
</ion-segment-button> -->
|
||||||
|
<ion-segment-button *ngFor="let calendars of eventService.calendarNamesAryPR; let i index" [value]="i === 'Meu calendario' ? 'Meu calendario' : i.OwnerUserId ">
|
||||||
<ion-segment-button *ngFor="let calendars of eventService.calendarNamesAryReverse; let i index" [value]="i === 'Meu calendario' ? 'Meu calendario' : i.OwnerUserId || calendars.OwnerUserId">
|
|
||||||
<div *ngIf="calendars == 'Meu calendario'"> Minha agenda </div>
|
<div *ngIf="calendars == 'Meu calendario'"> Minha agenda </div>
|
||||||
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Presidente da República'"> {{ environment.agendaPR}} </div>
|
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Presidente da República'"> {{ environment.agendaPR}} </div>
|
||||||
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Ministro e Director do Gabinete do PR'"> {{ environment.agendaVP}} </div>
|
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Ministro e Director do Gabinete do PR'"> {{ environment.agendaVP}} </div>
|
||||||
<div *ngIf="calendars != 'Meu calendario' && calendars.Role != 'Ministro e Director do Gabinete do PR' && calendars.Role != 'Presidente da República'"> Agenda do {{calendars.Fullname}}</div>
|
<div *ngIf="calendars != 'Meu calendario' && calendars.Role != 'Ministro e Director do Gabinete do PR' && calendars.Role != 'Presidente da República'"> Agenda do {{calendars.Fullname}} </div>
|
||||||
|
</ion-segment-button>
|
||||||
|
<ion-segment-button *ngFor="let calendars of eventService.calendarNamesAryNoPr; let i index" [value]="i === 'Meu calendario' ? 'Meu calendario' : i.OwnerUserId ">
|
||||||
|
<div *ngIf="calendars == 'Meu calendario'"> Minha agenda </div>
|
||||||
|
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Presidente da República'"> {{ environment.agendaPR}} </div>
|
||||||
|
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Ministro e Director do Gabinete do PR'"> {{ environment.agendaVP}} </div>
|
||||||
|
<div *ngIf="calendars != 'Meu calendario' && calendars.Role != 'Ministro e Director do Gabinete do PR' && calendars.Role != 'Presidente da República'"> Agenda do {{calendars.Fullname}} </div>
|
||||||
</ion-segment-button>
|
</ion-segment-button>
|
||||||
</ion-segment>
|
</ion-segment>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
|
|||||||
@@ -212,9 +212,7 @@ export class EventListPage implements OnInit {
|
|||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
close() {
|
|
||||||
this.modalController.dismiss(null);
|
|
||||||
}
|
|
||||||
goBack() {
|
goBack() {
|
||||||
this.RouteService.goBack()
|
this.RouteService.goBack()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,7 +51,9 @@ export class EventsService {
|
|||||||
calendarNames = {}
|
calendarNames = {}
|
||||||
|
|
||||||
calendarNamesAry = []
|
calendarNamesAry = []
|
||||||
|
calendarNamesAryNoPr = []
|
||||||
calendarNamesAryReverse = []
|
calendarNamesAryReverse = []
|
||||||
|
calendarNamesAryPR = []
|
||||||
|
|
||||||
calendarNamesType = {}
|
calendarNamesType = {}
|
||||||
calendarRole = []
|
calendarRole = []
|
||||||
@@ -64,9 +66,7 @@ export class EventsService {
|
|||||||
private http: HttpClient,
|
private http: HttpClient,
|
||||||
public user: AuthService,
|
public user: AuthService,
|
||||||
private changeProfileService: ChangeProfileService,
|
private changeProfileService: ChangeProfileService,
|
||||||
private offlinemanager: OfflineManagerService,
|
private offlinemanager: OfflineManagerService) {
|
||||||
private storage: Storage,
|
|
||||||
private backgroundservice: BackgroundService) {
|
|
||||||
|
|
||||||
this.setHeader()
|
this.setHeader()
|
||||||
this.changeProfileService.registerCallback(() => {
|
this.changeProfileService.registerCallback(() => {
|
||||||
@@ -213,8 +213,8 @@ export class EventsService {
|
|||||||
this.hasOwnPessoal = true
|
this.hasOwnPessoal = true
|
||||||
|
|
||||||
this.headerOwnPessoal = this.headerOwnPessoal.set('Authorization', SessionStore.user.BasicAuthKey);
|
this.headerOwnPessoal = this.headerOwnPessoal.set('Authorization', SessionStore.user.BasicAuthKey);
|
||||||
this.headerOwnPessoal =this.headerOwnPessoal.set('CalendarId', calendar.CalendarId);
|
this.headerOwnPessoal = this.headerOwnPessoal.set('CalendarId', calendar.CalendarId);
|
||||||
this.headerOwnPessoal =this.headerOwnPessoal.set('CalendarRoleId', calendar.CalendarRoleId);
|
this.headerOwnPessoal = this.headerOwnPessoal.set('CalendarRoleId', calendar.CalendarRoleId);
|
||||||
this.headerOwnPessoal = this.headerOwnPessoal.set('CalendarName', calendar.CalendarName);
|
this.headerOwnPessoal = this.headerOwnPessoal.set('CalendarName', calendar.CalendarName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -272,6 +272,12 @@ export class EventsService {
|
|||||||
|
|
||||||
this.calendarNamesAry.push(objectShared)
|
this.calendarNamesAry.push(objectShared)
|
||||||
|
|
||||||
|
if(e.Role == 'Presidente da República') {
|
||||||
|
this.calendarNamesAryPR.push(objectShared)
|
||||||
|
} else {
|
||||||
|
this.calendarNamesAryNoPr.push(objectShared)
|
||||||
|
}
|
||||||
|
|
||||||
this.calendarNamesType[e.FullName] = {}
|
this.calendarNamesType[e.FullName] = {}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -291,6 +297,7 @@ export class EventsService {
|
|||||||
|
|
||||||
if(!this.calendarNamesAry.includes('Meu calendario')) {
|
if(!this.calendarNamesAry.includes('Meu calendario')) {
|
||||||
this.calendarNamesAry.push('Meu calendario')
|
this.calendarNamesAry.push('Meu calendario')
|
||||||
|
this.calendarNamesAryNoPr.push('Meu calendario')
|
||||||
this.calendarNamesType['Meu calendario'] = {}
|
this.calendarNamesType['Meu calendario'] = {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-segment [(ngModel)]="segment" (ionChange)="segmentChanged($event)">
|
<ion-segment [(ngModel)]="segment" (ionChange)="segmentChanged($event)">
|
||||||
<ion-segment-button *ngFor="let calendars of eventService.calendarNamesAryReverse; let i index" [value]="i === 'Meu calendario' ? 'Meu calendario' : i.OwnerUserId ">
|
<ion-segment-button *ngFor="let calendars of eventService.calendarNamesAryPR; let i index" [value]="i === 'Meu calendario' ? 'Meu calendario' : i.OwnerUserId ">
|
||||||
|
<div *ngIf="calendars == 'Meu calendario'"> Minha agenda </div>
|
||||||
|
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Presidente da República'"> {{ environment.agendaPR}} </div>
|
||||||
|
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Ministro e Director do Gabinete do PR'"> {{ environment.agendaVP}} </div>
|
||||||
|
<div *ngIf="calendars != 'Meu calendario' && calendars.Role != 'Ministro e Director do Gabinete do PR' && calendars.Role != 'Presidente da República'"> Agenda do {{calendars.Fullname}} </div>
|
||||||
|
</ion-segment-button>
|
||||||
|
<ion-segment-button *ngFor="let calendars of eventService.calendarNamesAryNoPr; let i index" [value]="i === 'Meu calendario' ? 'Meu calendario' : i.OwnerUserId ">
|
||||||
<div *ngIf="calendars == 'Meu calendario'"> Minha agenda </div>
|
<div *ngIf="calendars == 'Meu calendario'"> Minha agenda </div>
|
||||||
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Presidente da República'"> {{ environment.agendaPR}} </div>
|
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Presidente da República'"> {{ environment.agendaPR}} </div>
|
||||||
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Ministro e Director do Gabinete do PR'"> {{ environment.agendaVP}} </div>
|
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Ministro e Director do Gabinete do PR'"> {{ environment.agendaVP}} </div>
|
||||||
|
|||||||
@@ -91,11 +91,17 @@
|
|||||||
Minha agenda
|
Minha agenda
|
||||||
</ion-segment-button> -->
|
</ion-segment-button> -->
|
||||||
|
|
||||||
<ion-segment-button *ngFor="let calendars of eventService.calendarNamesAry; let i index" [value]="i === 'Meu calendario' ? 'Meu calendario' : i.OwnerUserId" (ionChange)="dynamicSearch()">
|
<ion-segment-button *ngFor="let calendars of eventService.calendarNamesAryPR; let i index" [value]="i === 'Meu calendario' ? 'Meu calendario' : i.OwnerUserId ">
|
||||||
<div *ngIf="calendars == 'Meu calendario'"> Minha agenda </div>
|
<div *ngIf="calendars == 'Meu calendario'"> Minha agenda </div>
|
||||||
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Presidente da República'">{{ environment.agendaPR }}</div>
|
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Presidente da República'"> {{ environment.agendaPR}} </div>
|
||||||
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Ministro e Director do Gabinete do PR'"> environment.agendaVP </div>
|
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Ministro e Director do Gabinete do PR'"> {{ environment.agendaVP}} </div>
|
||||||
<div *ngIf="calendars != 'Meu calendario' && calendars.Role != 'Ministro e Director do Gabinete do PR' && calendars.Role != 'Presidente da República'"> Agenda do {{calendars.Fullname }} </div>
|
<div *ngIf="calendars != 'Meu calendario' && calendars.Role != 'Ministro e Director do Gabinete do PR' && calendars.Role != 'Presidente da República'"> Agenda do {{calendars.Fullname}} </div>
|
||||||
|
</ion-segment-button>
|
||||||
|
<ion-segment-button *ngFor="let calendars of eventService.calendarNamesAryNoPr; let i index" [value]="i === 'Meu calendario' ? 'Meu calendario' : i.OwnerUserId ">
|
||||||
|
<div *ngIf="calendars == 'Meu calendario'"> Minha agenda </div>
|
||||||
|
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Presidente da República'"> {{ environment.agendaPR}} </div>
|
||||||
|
<div *ngIf="calendars != 'Meu calendario' && calendars.Role == 'Ministro e Director do Gabinete do PR'"> {{ environment.agendaVP}} </div>
|
||||||
|
<div *ngIf="calendars != 'Meu calendario' && calendars.Role != 'Ministro e Director do Gabinete do PR' && calendars.Role != 'Presidente da República'"> Agenda do {{calendars.Fullname}} </div>
|
||||||
</ion-segment-button>
|
</ion-segment-button>
|
||||||
</ion-segment>
|
</ion-segment>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
|
|||||||
@@ -151,6 +151,7 @@ export class EventsToApprovePage implements OnInit {
|
|||||||
|
|
||||||
segmentChanged(ev: any) {
|
segmentChanged(ev: any) {
|
||||||
this.LoadToApproveEvents();
|
this.LoadToApproveEvents();
|
||||||
|
this.dynamicSearch()
|
||||||
}
|
}
|
||||||
|
|
||||||
async LoadToApproveEvents() {
|
async LoadToApproveEvents() {
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
export let versionData = {
|
export let versionData = {
|
||||||
"shortSHA": "0cab890ef",
|
"shortSHA": "1e568d096",
|
||||||
"SHA": "0cab890efd6f499e81a7080401b98d5b49baa4ed",
|
"SHA": "1e568d096a95af07afb280bc94c6d39af8801645",
|
||||||
"branch": "feature/gabinete-search",
|
"branch": "feature/gabinete-search",
|
||||||
"lastCommitAuthor": "'Peter Maquiran'",
|
"lastCommitAuthor": "'Peter Maquiran'",
|
||||||
"lastCommitTime": "'Mon Jun 12 12:30:58 2023 +0100'",
|
"lastCommitTime": "'Tue Jun 13 10:53:59 2023 +0100'",
|
||||||
"lastCommitMessage": "change color",
|
"lastCommitMessage": "fix route",
|
||||||
"lastCommitNumber": "5008",
|
"lastCommitNumber": "5009",
|
||||||
"change": "",
|
"change": "",
|
||||||
"changeStatus": "On branch feature/gabinete-search\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/app.module.ts\n\tmodified: src/app/pages/gabinete-digital/diplomas/diplomas.page.ts\n\tmodified: src/app/pages/gabinete-digital/gabinete-digital.page.html\n\tmodified: src/app/pages/gabinete-digital/gabinete-digital.page.ts",
|
"changeStatus": "On branch feature/gabinete-search\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/pages/gabinete-digital/event-list/event-list.page.html\n\tmodified: src/app/pages/gabinete-digital/event-list/event-list.page.ts\n\tmodified: src/app/services/events.service.ts\n\tmodified: src/app/shared/agenda/event-list/event-list.page.html\n\tmodified: src/app/shared/gabinete-digital/events-to-approve/events-to-approve.page.html\n\tmodified: src/app/shared/gabinete-digital/events-to-approve/events-to-approve.page.ts",
|
||||||
"changeAuthor": "peter.maquiran"
|
"changeAuthor": "peter.maquiran"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user