fix agenda and publication

This commit is contained in:
Peter Maquiran
2024-05-24 11:29:53 +01:00
parent fcb6727f4e
commit 3eecefcfa6
38 changed files with 651 additions and 216 deletions
+10 -25
View File
@@ -5,7 +5,7 @@ import { EventsService } from 'src/app/services/events.service';
import { NavigationExtras, Router } from '@angular/router';
import { ActivatedRoute, NavigationEnd } from '@angular/router';
import { ModalController, Platform } from '@ionic/angular';
import { EventDetailPage } from './event-detail/event-detail.page';
// import { EventDetailPage } from './event-detail/event-detail.page';
import { ProcessesService } from '../../services/processes.service';
import { DailyWorkTask } from '../../models/dailyworktask.model';
import { LoginUserRespose } from 'src/app/models/user.model';
@@ -84,7 +84,7 @@ export class EventsPage implements OnInit {
public ThemeService: ThemeService,
) {
this.existingScreenOrientation = this.screenOrientation.type;
this.loggeduser = SessionStore.user;
@@ -92,7 +92,7 @@ export class EventsPage implements OnInit {
this.platform.resize.subscribe(async () => {
//
//
//
});
@@ -137,7 +137,7 @@ export class EventsPage implements OnInit {
// Lock to portrait
lockToPortrait(){
this.screenOrientation.lock(this.screenOrientation.ORIENTATIONS.PORTRAIT);
}
// Lock to landscape
@@ -153,7 +153,7 @@ export class EventsPage implements OnInit {
checkScreenOrientation(){
if( window.innerWidth < 701) {
this.lockToPortrait();
}
else{
@@ -233,8 +233,8 @@ export class EventsPage implements OnInit {
let prOficialEvents= await this.eventService.getAllPrOficialEvents(start, end).toPromise();
let prPessoalEvents= await this.eventService.getAllPrPessoalEvents(start, end).toPromise();
this.eventsList = prOficialEvents.concat(prPessoalEvents);
if(this.eventsList.length > 0){
this.currentEvent = this.eventsList[0].Subject;
@@ -297,12 +297,12 @@ export class EventsPage implements OnInit {
changeProfile(){
if(this.profile == "mdgpr"){
this.profile ="pr";
this.RefreshEvents();
}
else{
this.profile ="mdgpr";
this.RefreshEvents();
}
@@ -315,26 +315,11 @@ export class EventsPage implements OnInit {
this.router.navigate(['/home/login']);
}
async openEventDetail1(id:any){
const modal = await this.modalController.create({
component: EventDetailPage,
componentProps: {
eventId: id,
},
cssClass: 'event-detail',
backdropDismiss: false
});
modal.onDidDismiss();
await modal.present();
}
LoadList() {
this.processes.GetTaskListExpediente(false).subscribe(result => {
const ExpedienteTask = result.map( e=> this.expedienteTaskPipe.transform(e))