tab organization

This commit is contained in:
Peter Maquiran
2023-06-13 11:31:59 +01:00
parent 1e568d096a
commit 5db8d1f1e5
7 changed files with 45 additions and 22 deletions
+12 -5
View File
@@ -51,7 +51,9 @@ export class EventsService {
calendarNames = {}
calendarNamesAry = []
calendarNamesAryNoPr = []
calendarNamesAryReverse = []
calendarNamesAryPR = []
calendarNamesType = {}
calendarRole = []
@@ -64,9 +66,7 @@ export class EventsService {
private http: HttpClient,
public user: AuthService,
private changeProfileService: ChangeProfileService,
private offlinemanager: OfflineManagerService,
private storage: Storage,
private backgroundservice: BackgroundService) {
private offlinemanager: OfflineManagerService) {
this.setHeader()
this.changeProfileService.registerCallback(() => {
@@ -213,8 +213,8 @@ export class EventsService {
this.hasOwnPessoal = true
this.headerOwnPessoal = this.headerOwnPessoal.set('Authorization', SessionStore.user.BasicAuthKey);
this.headerOwnPessoal =this.headerOwnPessoal.set('CalendarId', calendar.CalendarId);
this.headerOwnPessoal =this.headerOwnPessoal.set('CalendarRoleId', calendar.CalendarRoleId);
this.headerOwnPessoal = this.headerOwnPessoal.set('CalendarId', calendar.CalendarId);
this.headerOwnPessoal = this.headerOwnPessoal.set('CalendarRoleId', calendar.CalendarRoleId);
this.headerOwnPessoal = this.headerOwnPessoal.set('CalendarName', calendar.CalendarName);
}
}
@@ -271,6 +271,12 @@ export class EventsService {
}
this.calendarNamesAry.push(objectShared)
if(e.Role == 'Presidente da República') {
this.calendarNamesAryPR.push(objectShared)
} else {
this.calendarNamesAryNoPr.push(objectShared)
}
this.calendarNamesType[e.FullName] = {}
}
@@ -291,6 +297,7 @@ export class EventsService {
if(!this.calendarNamesAry.includes('Meu calendario')) {
this.calendarNamesAry.push('Meu calendario')
this.calendarNamesAryNoPr.push('Meu calendario')
this.calendarNamesType['Meu calendario'] = {}
}