mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
save
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
|
||||
<ion-list>
|
||||
<ion-item class="item-hover cursor-pointer" lines="none" *ngFor="let event of listToPresent"
|
||||
(click)="goToEvent(event.EventId)"
|
||||
(click)="goToEvent(event)"
|
||||
>
|
||||
<div class="d-flex content-{{loggeduser.Profile}}-{{event.CalendarName}}">
|
||||
|
||||
|
||||
@@ -460,18 +460,15 @@ export class EventsPage implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
goToEvent(eventId: any) {
|
||||
this.router.navigate(['/home/events', eventId, 'events']);
|
||||
goToEvent(event: any) {
|
||||
let navigationExtras: NavigationExtras = { queryParams: { CalendarId: event.CalendarId } }
|
||||
|
||||
|
||||
this.router.navigate(['/home/events', event.EventId, 'agenda'], navigationExtras);
|
||||
}
|
||||
|
||||
goToExpediente(SerialNumber: any) {
|
||||
this.router.navigate(['/home/events/expediente', SerialNumber, 'events']);
|
||||
/* if (this.loggeduser.Profile == 'MDGPR') {
|
||||
this.router.navigate(['/home/events/expediente', SerialNumber, 'events']);
|
||||
}
|
||||
else if (this.loggeduser.Profile == 'PR') {
|
||||
this.router.navigate(['/home/events/expedientes-pr', SerialNumber, 'events']);
|
||||
} */
|
||||
}
|
||||
|
||||
viewExpedientListPage() {
|
||||
|
||||
@@ -35,7 +35,6 @@
|
||||
displayFormat="D MMM YYYY H:mm"
|
||||
minuteValues="0,5,10,15,20,25,30,35,40,45,50,55"
|
||||
monthShortNames="Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez"
|
||||
min="{{minDate}}"
|
||||
max="2025">
|
||||
</ion-datetime>
|
||||
|
||||
@@ -43,7 +42,6 @@
|
||||
<input matInput [ngxMatDatetimePicker]="picker1"
|
||||
placeholder="Data inicio*"
|
||||
[formControl]="dateControlStart"
|
||||
[min]="minDate"
|
||||
[disabled]="disabled"
|
||||
>
|
||||
<mat-datepicker-toggle id="new-inicio" matSuffix [for]="picker1"></mat-datepicker-toggle>
|
||||
|
||||
@@ -259,6 +259,7 @@ export class SearchPage implements OnInit {
|
||||
if(this.type == "Agenda" ){
|
||||
|
||||
|
||||
alert('agenda seach')
|
||||
this.showLoader = true;
|
||||
|
||||
|
||||
@@ -287,7 +288,8 @@ export class SearchPage implements OnInit {
|
||||
this.loadWordCloud();
|
||||
|
||||
},error => {
|
||||
this.searchResult = "Registo não encontrado"
|
||||
this.showLoader = false;
|
||||
// this.searchResult = "Registo não encontrado"
|
||||
console.log(error)
|
||||
});
|
||||
}
|
||||
@@ -551,6 +553,11 @@ export class SearchPage implements OnInit {
|
||||
|
||||
this.loadWordCloud();
|
||||
},error => {
|
||||
counter++;
|
||||
|
||||
if(counter ==2){
|
||||
this.showLoader = false;
|
||||
}
|
||||
this.searchResult = "Registo não encontrado"
|
||||
console.log(error)
|
||||
});
|
||||
@@ -586,6 +593,7 @@ export class SearchPage implements OnInit {
|
||||
this.showLoader = false;
|
||||
this.loadWordCloud();
|
||||
},error => {
|
||||
this.showLoader = false;
|
||||
this.searchResult = "Registo não encontrado"
|
||||
console.log(error)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user