mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
add segment to agenda for evento to aprove
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user