mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
improve
This commit is contained in:
@@ -486,7 +486,7 @@ export class EventsService {
|
||||
|
||||
return this.http.get<Event>(`${geturl}`, options);
|
||||
} else {
|
||||
alert('headr not found'+ calendarId)
|
||||
|
||||
}
|
||||
|
||||
throw('error')
|
||||
@@ -814,6 +814,13 @@ export class EventsService {
|
||||
})
|
||||
|
||||
if (header) {
|
||||
|
||||
|
||||
options = {
|
||||
headers: header,
|
||||
params: params
|
||||
};
|
||||
|
||||
return this.http.delete(`${puturl}`, options).pipe(
|
||||
catchError(err => {
|
||||
console.log('Event edit saved offline')
|
||||
@@ -821,6 +828,8 @@ export class EventsService {
|
||||
throw new Error(err);
|
||||
})
|
||||
)
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
throw('header not found')
|
||||
|
||||
Reference in New Issue
Block a user