add redirect message

This commit is contained in:
Peter Maquiran
2023-11-29 16:12:30 +01:00
parent 967d01e251
commit fe732a1997
16 changed files with 114 additions and 185 deletions
+21 -21
View File
@@ -92,7 +92,7 @@ export class EventsPage implements OnInit {
private changeProfileService: ChangeProfileService,
public TaskService: TaskService
) {
window['zipPhoneCallback'] = function (zipphone) {
var frame = document.getElementById('home-iframe');
if(frame) {
@@ -113,7 +113,7 @@ export class EventsPage implements OnInit {
}
ngAfterViewInit(): void {
this.loadAllTask();
@@ -123,9 +123,9 @@ export class EventsPage implements OnInit {
this.dynamicSearch()
}
})
this.dynamicSearch()
}
ngOnDestroy() {
@@ -161,20 +161,20 @@ export class EventsPage implements OnInit {
const ordinance = this.ordinance
if(this.showSearch && this.searchSubject) {
const AllProcess = this.TaskService.AllProcess.filter((task) => {
let subject = task.Folio || task.Subject || task.workflowInstanceDataFields.Subject
subject = subject.toLowerCase();
return subject.includes(this.searchSubject.toLowerCase())
}).filter( task => this.TaskService.filter(task, this.filterName))
if(ordinance == this.ordinance) {
this.AllProcess = this.TaskService.reorderList(this.ordinance, AllProcess)
this.AllProcess = this.TaskService.reorderList(this.ordinance, AllProcess)
}
} else {
const AllProcess = this.TaskService.AllProcess
if(ordinance == this.ordinance) {
this.AllProcess = this.TaskService.reorderList(this.ordinance, AllProcess)
.filter( task => this.TaskService.filter(task, this.filterName))
@@ -205,7 +205,7 @@ export class EventsPage implements OnInit {
} catch(error) {}
}, 2000);
}
this.RefreshEvents();
this.LoadList();
this.loadAllTask();
@@ -218,7 +218,7 @@ export class EventsPage implements OnInit {
async RefreshEvents() {
this.currentEvent = "";
this.showLoader = true;
this.showAgendaLoader = true;
@@ -256,7 +256,7 @@ export class EventsPage implements OnInit {
let dateToday = date.getFullYear() + "-" + month + "-" + date.getDate();
this.storage.get('events').then((events: any[] = []) => {
//
//
if(Array.isArray(events)) {
this.listToPresent = events
@@ -271,7 +271,7 @@ export class EventsPage implements OnInit {
} catch (error) {}
}
//
//
})
@@ -299,19 +299,19 @@ export class EventsPage implements OnInit {
changeProfile() {
if (this.profile == "mdgpr") {
//
//
this.profile = "pr";
this.RefreshEvents();
}
else {
//
//
this.profile = "mdgpr";
this.RefreshEvents();
}
}
async openEventDetail1(id: any) {
//
//
const modal = await this.modalController.create({
component: EventDetailPage,
@@ -328,7 +328,7 @@ export class EventsPage implements OnInit {
}
async openEventDetail(id: any) {
//
//
const modal = await this.modalController.create({
component: ViewEventPage,
@@ -338,7 +338,7 @@ export class EventsPage implements OnInit {
cssClass: 'view-event',
backdropDismiss: false
});
modal.onDidDismiss();
await modal.present();
@@ -358,7 +358,7 @@ export class EventsPage implements OnInit {
window['all-process-gabinete']()
}
}
sortArrayISODate(myArray: any) {
@@ -375,9 +375,9 @@ export class EventsPage implements OnInit {
}
goToAllTaskFilter(event: any) {
let navigationExtras: NavigationExtras = { queryParams: {
let navigationExtras: NavigationExtras = { queryParams: {
filter: event,
processes: true
processes: true
} }
@@ -407,4 +407,4 @@ export class EventsPage implements OnInit {
}
}
}
}