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:
@@ -83,7 +83,6 @@ export class EditEventPage implements OnInit {
|
|||||||
this.taskParticipantsCc.push(e);
|
this.taskParticipantsCc.push(e);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.postEvent.IsRecurring == false) {
|
if(this.postEvent.IsRecurring == false) {
|
||||||
@@ -98,8 +97,6 @@ export class EditEventPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.selectedRecurringType = this.postEvent.EventRecurrence.Type;
|
|
||||||
|
|
||||||
window.onresize = (event) => {
|
window.onresize = (event) => {
|
||||||
// if not mobile remove all component
|
// if not mobile remove all component
|
||||||
if( window.innerWidth >= 1024) {
|
if( window.innerWidth >= 1024) {
|
||||||
@@ -111,6 +108,9 @@ export class EditEventPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.getRecurrenceTypes();
|
this.getRecurrenceTypes();
|
||||||
|
setTimeout(() => {
|
||||||
|
this.selectedRecurringType = this.postEvent.EventRecurrence.Type.toString();
|
||||||
|
}, 500);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -130,7 +130,7 @@ export class EditEventPage implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
onSelectedRecurringChanged(ev:any){
|
onSelectedRecurringChanged(ev?:any){
|
||||||
console.log(ev);
|
console.log(ev);
|
||||||
if(ev.length > 1){
|
if(ev.length > 1){
|
||||||
console.log(ev.filter(data => data != '-1'));
|
console.log(ev.filter(data => data != '-1'));
|
||||||
|
|||||||
@@ -62,13 +62,11 @@ export class ViewEventPage implements OnInit {
|
|||||||
this.loadedEvent = new Event();
|
this.loadedEvent = new Event();
|
||||||
this.eventBody = { BodyType : "1", Text : ""};
|
this.eventBody = { BodyType : "1", Text : ""};
|
||||||
this.loadedEvent.Body = this.eventBody;
|
this.loadedEvent.Body = this.eventBody;
|
||||||
|
|
||||||
this.activatedRoute.paramMap.subscribe(params =>{
|
this.activatedRoute.paramMap.subscribe(params =>{
|
||||||
this.eventId = params['params'].eventId;
|
this.eventId = params['params'].eventId;
|
||||||
if(params["params"].caller){
|
if(params["params"].caller){
|
||||||
this.caller = (params["params"].caller);
|
this.caller = (params["params"].caller);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
/* this.activatedRoute.queryParams.subscribe(params => {
|
/* this.activatedRoute.queryParams.subscribe(params => {
|
||||||
@@ -81,6 +79,7 @@ export class ViewEventPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|
||||||
this.loadEvent();
|
this.loadEvent();
|
||||||
this.getAttachments();
|
this.getAttachments();
|
||||||
|
|
||||||
@@ -116,9 +115,8 @@ export class ViewEventPage implements OnInit {
|
|||||||
|
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
|
||||||
this.today = new Date(res.StartDate);
|
/* this.today = new Date(res.StartDate);
|
||||||
/* console.log(new Date(this.today)); */
|
this.customDate = this.days[this.today.getDay()]+ ", " + this.today.getDate() +" de " + ( this.months[this.today.getMonth()]); */
|
||||||
this.customDate = this.days[this.today.getDay()]+ ", " + this.today.getDate() +" de " + ( this.months[this.today.getMonth()]);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -385,13 +385,14 @@ export class EventsService {
|
|||||||
return this.http.post<string>(`${puturl}`, event, options)
|
return this.http.post<string>(`${puturl}`, event, options)
|
||||||
}
|
}
|
||||||
|
|
||||||
deleteEvent(eventid:string, deletemode:number)
|
deleteEvent(eventid:string, eventDeleteType:number)
|
||||||
{
|
{
|
||||||
const puturl = environment.apiURL + 'calendar/DeleteEvent';
|
const puturl = environment.apiURL + 'calendar/DeleteEvent';
|
||||||
let params = new HttpParams();
|
let params = new HttpParams();
|
||||||
|
|
||||||
params = params.set("EventId", eventid);
|
params = params.set("EventId", eventid);
|
||||||
params = params.set("deleteMode", deletemode.toString());
|
// 0 for occurence and 1 for serie (delete all events)
|
||||||
|
params = params.set("eventDeleteType", eventDeleteType.toString());
|
||||||
|
|
||||||
let options = {
|
let options = {
|
||||||
headers: this.headers,
|
headers: this.headers,
|
||||||
|
|||||||
Reference in New Issue
Block a user