Edit event to approve

This commit is contained in:
Peter Maquiran
2021-03-03 10:15:44 +01:00
parent a0f06af6bf
commit b079656c7f
6 changed files with 29 additions and 12 deletions
+3 -2
View File
@@ -324,7 +324,7 @@
(viewEventDetailDismiss)="viewEventDetailDismiss($event)"
></app-view-event>
<app-event-list [class.transparent]="mobileComponent.transparentEventList" *ngIf="mobileComponent.showEventList"
[segment]="segment"
(approveEventDismiss) = "approveEventDismiss($event)"
@@ -333,10 +333,11 @@
</app-event-list>
<app-approve-event class="d-flex flex-column" *ngIf="mobileComponent.showEventToApprove"
<app-approve-event class="d-flex flex-column" *ngIf="mobileComponent.showEventToApprove" [class.transparent]="mobileComponent.transparentEventToApprove"
[serialNumber] = "eventToaprove.serialNumber"
(cloneAllmobileComponent)="viewEventDetailDismiss($event)"
(closeEventToApprove)="closeEventToApprove($event)"
(AproveEventEditEvent)="AproveEventEditEvent($event)"
>
</app-approve-event>
+1 -2
View File
@@ -576,7 +576,6 @@ app-event-list{
display: flex;
flex-direction: column;
height: 100%;
height: 100%;
flex-wrap: wrap-reverse;
z-index: 1000;
}
@@ -585,7 +584,7 @@ app-approve-event{
display: flex;
flex-direction: column;
height: 100%;
height: 100%;
z-index: 1000;
}
+14 -3
View File
@@ -101,13 +101,13 @@ export class AgendaPage implements OnInit {
startTime: Date;
endTime: Date;
mobileComponent: any = {
showAddNewEvent: false,
showEditEvent: false,
showEventDitails: false,
showEventList: false,
transparentEventList: false,
transparentEventToApprove: false,
showEventToApprove: false
}
@@ -458,7 +458,7 @@ export class AgendaPage implements OnInit {
});
});
// this.timelineFilter(this.timelineFilterState);
this.timelineFilter(this.timelineFilterState);
this.myCal.update();
this.myCal.loadEvents();
@@ -491,7 +491,7 @@ export class AgendaPage implements OnInit {
});
// this.timelineFilter(this.timelineFilterState);
this.timelineFilter(this.timelineFilterState);
this.myCal.update();
this.myCal.loadEvents();
@@ -701,6 +701,8 @@ export class AgendaPage implements OnInit {
console.log(this.selectedEvent);
console.log(this.postEvent);
this.mobileComponent.showEditEvent = true;
}
@@ -730,6 +732,8 @@ export class AgendaPage implements OnInit {
}
approveEventDismiss({saveData, serialNumber, action}){
console.log(saveData);
if(action == 'Aprovar'){
this.eventToaprove = {
@@ -770,4 +774,11 @@ export class AgendaPage implements OnInit {
}
async AproveEventEditEvent(data){
console.log(data)
this.postEvent =data;
this.mobileComponent.transparentEventToApprove= true;
this.mobileComponent.showAddNewEvent = true;
}
}