add segment to agenda for evento to aprove

This commit is contained in:
Peter Maquiran
2021-05-10 16:07:58 +01:00
parent 669ff39ba8
commit b500ded7a6
2 changed files with 19 additions and 11 deletions
+1 -1
View File
@@ -54,7 +54,7 @@
<ion-icon class="right-icons d-md-none" src="assets/images/icons-profile-calendar-pr.svg">dddddddd</ion-icon>
</button>
<button class="btn-no-color" (click)="viewEventsToApprove()">
<button class="btn-no-color" (click)="viewEventsToApprove()" *ngIf="loggeduser.Profile == 'MDGPR'">
<ion-icon class="right-icons" src="assets/images/icons-received-event.svg"></ion-icon>
</button>
+18 -10
View File
@@ -24,6 +24,8 @@ import { CustomDateFormatter } from './custom-date-formatter.provider';
import { EventListPage } from '../gabinete-digital/event-list/event-list.page';
import { ViewEventPage } from './view-event/view-event.page';
import { NewEventPage } from './new-event/new-event.page';
import { AuthService } from 'src/app/services/auth.service';
import { User } from 'src/app/models/user.model';
@Component({
selector: 'app-agenda',
@@ -143,7 +145,8 @@ export class AgendaPage implements OnInit {
*/
IsEvent: "edit" | "add" | "view";
viewingEventObject: { event: CalendarEvent };
loggeduser: User;
constructor(
private alertCtrl: AlertController,
@Inject(LOCALE_ID) private locale: string,
@@ -151,17 +154,22 @@ export class AgendaPage implements OnInit {
private eventService: EventsService,
private router: Router,
private alertController: AlertService,
private sanitizer: DomSanitizer
) {
private sanitizer: DomSanitizer,
authService: AuthService) {
this.calendarHeight = "333px";
this.showCalendar = true;
this.timelineDate = momentG(new Date(),'dd MMMM yyyy');
this.loggeduser = authService.ValidatedUser;
this.showLoader = false;
this.showTimelineFilterState = false;
this.showTimeline = false;
this.calendarHeight = "333px";
this.showCalendar = true;
this.timelineDate = momentG(new Date(),'dd MMMM yyyy');
this.showLoader = false;
this.showTimelineFilterState = false;
this.showTimeline = false;
if(this.loggeduser.Profile == 'MDGPR') {
this.mobileComponent.showEventList = true;
}
}
@@ -227,7 +235,7 @@ export class AgendaPage implements OnInit {
this.showEventEditOrOpen = 'edit';
if( window.innerWidth <= 1024){
if( window.innerWidth <= 1024) {
this.viewEventDetail(event.id)
//this.router.navigate(["/home/agenda", event.id, 'agenda']);
} else {